/* Reset CSS */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background-color: hsl(100, 15%, 90%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
    'Helvetica Neue', sans-serif;
  min-height: 100vh;
  line-height: 1.5;
  color: #333;
}

button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  outline: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.container {
  max-width: none;
  width: 100%;
  padding: 20px 20px 30px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.browser-window {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  width: 95%;
}

.browser-header {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  padding: 0 8px;
  border-bottom: 1px solid #ddd;
  position: relative;
  height: 38px;
}

.window-controls {
  display: flex;
  gap: 6px;
  padding: 9px;
  min-width: 60px;
}

.control {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  cursor: pointer;
}

.close {
  background: #ff5f56;
}

.minimize {
  background: #ffbd2e;
}

.maximize {
  background: #27c93f;
}

.tabs {
  display: flex;
  flex: 1;
  padding: 0 10px;
  position: relative;
  z-index: 0;
  margin-top: -6px;
}

.tab {
  padding: 7px 20px;
  cursor: pointer;
  border-radius: 10px 10px 0 0;
  margin: 0 4px;
  margin-top: 6px;
  font-size: 12px;
  color: #666;
  position: relative;
  transition: all 0.2s ease;
  background: transparent;
  height: 15px;
  display: flex;
  align-items: center;
  box-sizing: content-box;
  border: 1px solid transparent;
  justify-content: center;
}

.tab.active {
  background: white;
  color: #2b2b2b;
  font-weight: 500;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid #ddd;
  border-bottom: 1px solid white;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}

.tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
  color: #444;
}

.content {
  min-height: 600px;
  max-height: 80vh;
  padding: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('static/bg2.jpg') no-repeat center center;
  background-size: cover;
}

.tab-content {
  position: relative;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-content[x-show] {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

h1 {
  color: #333;
  font-size: 24px;
  font-weight: normal;
  margin-bottom: 40px;
}

.search-box {
  max-width: 600px;
  width: 100%;
  margin: 0 auto 0;
  position: relative;
  height: 150px;
}

.search-box input {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 12px 20px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 24px;
  outline: none;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
}

.search-box input:focus {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border-color: #aaa;
}

@media (max-width: 768px) {
  .container {
    padding: 20px 15px;
    gap: 20px;
  }

  .browser-window {
    width: 100%;
  }

  .content {
    min-height: 800px;
    height: 800px;
    max-height: none;
    padding: 15px;
  }

  .tab-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
  }

  .artwork-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 10px;
    position: relative;
    margin-top: 20px;
  }

  .frame-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .art-frame {
    padding: 16px;
    border-width: 8px;
  }

  .art-info {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 15px auto 0;
    background: rgba(248, 248, 248, 0.95);
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
  }

  .browser-header {
    flex-direction: row;
    height: 38px;
    padding: 0;
  }

  .window-controls {
    padding: 9px;
    min-width: 60px;
    background: transparent;
  }

  .tabs {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 10px;
    margin-top: -6px;
    display: flex;
    gap: 2px;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    flex-shrink: 0;
    padding: 7px 20px;
    font-size: 12px;
    height: 15px;
    margin-top: 6px;
    border-radius: 10px 10px 0 0;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 15px 10px;
  }

  .artwork-container {
    max-width: 320px;
    padding: 5px;
    margin-top: 15px;
  }

  .frame-wrapper {
    max-width: 320px;
  }

  .art-frame {
    padding: 12px;
    border-width: 6px;
  }

  .art-info {
    width: 240px;
  }

  .content {
    min-height: 500px;
    height: 500px;
  }
}

.artwork-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 500px;
  padding: 20px;
  box-sizing: border-box;
  z-index: 1;
  margin-top: -20px;
}

.frame-wrapper {
  position: relative;
  width: min(500px, calc(100vw - 40px));
  margin: 0 auto;
}

.art-frame {
  background: #fff;
  padding: 24px;
  border: 12px solid #000;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.2),
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 35px 90px -20px rgba(0, 0, 0, 0.7),
    0 30px 45px -15px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 0, 0, 0.1),
    0 -5px 20px rgba(255, 255, 255, 0.15);
}

.art-image {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
}

.art-info {
  width: 140px;
  background: #f8f8f8;
  color: #333;
  padding: 16px;
  font-size: 12px;
  text-align: left;
  letter-spacing: 0.3px;
  position: absolute;
  right: -220px;
  bottom: 50px;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.15),
    0 1px 2px rgba(0, 0, 0, 0.1);
}

.info-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 500;
  color: #222;
  line-height: 1.4;
}

.info-text {
  margin: 6px 0;
  line-height: 1.4;
  color: #666;
  font-size: 11px;
}

.art-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.art-link:hover {
  color: #000;
}

@media (max-width: 1080px) {
  .art-info {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 20px auto 0;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .artwork-container {
    padding: 5px;
  }

  .art-frame {
    padding: 12px;
    border-width: 8px;
  }

  .art-info {
    width: 140px;
    margin: 15px auto 0;
  }

  .info-title {
    font-size: 13px;
  }

  .info-text {
    font-size: 11px;
  }
}

.page-header {
  text-align: left;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 95%;
  padding: 0 0px;
  margin-bottom: 40px;
}

.header-text {
  text-align: left;
  margin-bottom: 20px;
}

.header-title {
  font-size: 24px;
  font-weight: 500;
  color: #333;
  margin: 0;
  line-height: 1.4;
}

.header-source {
  font-size: 14px;
  color: #666;
  margin: 8px 0 0 0;
  font-weight: normal;
}

.chrome-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: #333;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.chrome-button .arrow {
  margin-left: 6px;
  transition: transform 0.2s ease;
}

.chrome-button:hover .arrow {
  transform: translateX(4px);
}

.chrome-button:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.chrome-button img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 15px;
  }

  .chrome-button {
    margin-left: 0;
  }

  .header-title {
    font-size: 24px;
  }

  .header-source {
    font-size: 14px;
  }
}

.brand {
  font-size: 64px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff, #e0e0e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 30px rgba(255, 255, 255, 0.1);
}

.slogan {
  font-size: 24px;
  color: #9e9e9e;
  margin: 10px 0 30px;
  font-weight: 300;
  letter-spacing: 1px;
}

.download-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.platform-selector {
  position: relative;
}

.platform-toggle {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #333;
}

.platform-toggle:hover {
  background: #f8f8f8;
  transform: translateY(-1px);
}

.platform-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.platform-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.platform-option {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s ease;
}

.platform-option:hover {
  background: #f5f5f5;
}

.platform-option img {
  width: 20px;
  height: 20px;
}

/* 调整主容器样式 */
.container {
  max-width: none;
  width: 100%;
  padding: 40px 20px 40px 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 800px;
}

@media (max-width: 768px) {
  .container {
    padding: 20px 15px;
    gap: 20px;
  }

  .artwork-container {
    padding: 10px;
    margin-top: 0;
  }

  .frame-wrapper {
    width: 100%;
    margin: 0;
  }

  .art-frame {
    padding: 16px;
    border-width: 8px;
  }

  .art-info {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 15px 0 0;
    background: rgba(248, 248, 248, 0.95);
  }

  .browser-window {
    width: 100%;
    margin: 0;
  }

  .content {
    min-height: 400px;
    max-height: 70vh;
    padding: 15px;
  }

  .tab-content {
    padding: 0;
  }

  .info-title {
    font-size: 14px;
  }

  .info-text {
    font-size: 12px;
    margin: 8px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 15px 10px;
  }

  .artwork-container {
    padding: 5px;
  }

  .art-frame {
    padding: 12px;
    border-width: 6px;
  }

  .content {
    min-height: 300px;
    padding: 10px;
  }

  .info-title {
    font-size: 13px;
  }

  .info-text {
    font-size: 11px;
    margin: 6px 0;
  }
}
