:root {
    --primary-color: #2A5C82;
    --secondary-color: #4F8BB7;
    --background: #f8f9fa;
    --sidebar-bg: #f8f9fa;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --border-color: #e2e8f0;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", system-ui, sans-serif;
  }

  body {
    font-family: "Inter", system-ui, sans-serif;
    margin: 0;
    padding: 20px;
    background: var(--background);
    color: var(--text-primary);
  }
.main-header {
    position: fixed; /* 改为fixed定位 */
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    height: 72px; /* 设置固定高度 */
    display: flex;
    align-items: center;
}

.header-nav-container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

.brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s var(--transition);
}

.nav-link:hover {
    color: var(--secondary-color);
}

/* 下拉菜单 */
.dropdown {
    position: relative;
    margin-right: 1px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 120px;
    z-index: 100;
    font-weight: 500; /* 新增字体加粗效果 */
  }

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    color: #333;
text-decoration: none;
display: block;
padding: 8px 12px;
transition: color 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: #9f9c9c32;
 }

 .panel-container {
    display: flex;
    gap: 20px;
    margin-top: 80px;
  }
  .control-panel {
    width: 500px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
  .preview-panel {
    flex: 1;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    padding: 20px;
  }
  .section-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 15px 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
  }
.param-group {
    margin-bottom: 18px;
}
label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
}
input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

textarea {
    min-height: 80px;
    resize: vertical;
  }
button {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 15px;
    margin-top: 10px;
    transition: background 0.2s;
}
button:hover {
    background: #34495e;
}
button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}
#previewArea {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
#previewArea img, #previewArea model-viewer {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
#uploadPreview {
    height: 150px;
    border: 2px dashed #ddd;
    margin-top: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
#uploadPreview img {
    max-width: 100%;
    max-height: 100%;
}
#uploadPreview p {
    color: #7f8c8d;
}
#statusInfo {
    margin-top: 15px;
    font-size: 13px;
    color: #7f8c8d;
    text-align: center;
}
.progress-bar {
    height: 6px;
    background: #ecf0f1;
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: #3498db;
    transition: width 0.3s;
}
.ratio-control {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ratio-control input[type="range"] {
    flex: 1;
}
#ratioValue {
    width: 40px;
    text-align: center;
    font-weight: bold;
}
.download-btn {
    background: #27ae60;
    margin-top: 10px;
}
.download-btn:hover {
    background: #2ecc71;
}
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
  }

  .user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
  }
  

  .user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 120px;
    z-index: 100;
  }
.user-dropdown a {
color: #333;
text-decoration: none;
display: block;
padding: 8px 12px;
transition: color 0.2s ease;
}
  .user-menu:hover .user-dropdown {
    display: block;
  }
  .user-dropdown a:hover {
     background-color: #9f9c9c32;
  }

  /* 保持原有登录按钮样式 */
  .authing-login-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
  }
  .credit-counter {
display: flex;
align-items: center;
gap: 6px;
margin-right: 20px;
padding: 6px 12px;
background: rgba(255, 215, 0, 0.1);
border-radius: 16px;
font-weight: 600;
color: #ffd700; /* 金色强调 */
}

.credit-counter i {
color: #ffd700;
}

/* 低次数警告 */
.credit-counter.low {
color: #ff6b6b;
animation: pulse 1.5s infinite;
}

@keyframes pulse {
0% { opacity: 1; }
50% { opacity: 0.6; }
100% { opacity: 1; }
}