:root {
    --primary-color: #00bcd4;
    --text-primary: #333;
    --text-secondary: #666;
    --background-color: #fff;
    --border-color: #e0e0e0;
}

body {
    background-color: var(--background-color);
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 工具头部样式 */
.tools-header {
    text-align: center;
    padding: 4rem 2rem 2rem;
}

.tools-header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tools-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 工具网格样式 */
.tools-grid {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tool-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.tool-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.tool-icon img {
    width: 32px;
    height: 32px;
}

.tool-content {
    flex: 1;
}

.tool-content h3 {
    margin: 0 0 0.5rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.tool-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.tool-arrow {
    color: var(--text-secondary);
}

/* 保持现有的导航栏样式 */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4rem;
    background-color: var(--card-background);
    box-shadow: none;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 64px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: normal;
    padding: 0.5rem 0;
    border-radius: 0;
    transition: color 0.2s;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary-color);
    background-color: transparent;
}

.auth-buttons {
    display: flex;
    gap: 0.5rem;
}

.login-btn {
    padding: 6px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: transparent;
    color: #666;
    font-size: 14px;
    font-weight: normal;
}

.signup-btn {
    padding: 6px 16px;
    border: none;
    border-radius: 4px;
    background: #00BCD4;
    color: white;
    font-size: 14px;
    font-weight: normal;
}

.login-btn:hover,
.signup-btn:hover {
    opacity: 0.9;
}

/* 英雄区域样式 */
.hero {
    margin-top: 80px;
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.upload-zone {
    max-width: 800px;
    margin: 0 auto;
}

.upload-area {
    background: white;
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    background: rgba(0,188,212,0.05);
}

.upload-area i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.upload-area p {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.upload-area .support-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.upload-area.dragover {
    background: rgba(0,188,212,0.1);
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.selected-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0,188,212,0.1);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.file-name {
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cancel-file {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.cancel-file:hover {
    background: rgba(0,0,0,0.1);
    color: #333;
}

.cancel-file .material-icons {
    font-size: 18px;
}

/* 当有文件时上传区域的样式 */
.upload-area.has-file {
    border-style: solid;
}

/* 添加文件类型提示 */
.upload-area .support-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* 添加上传动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.upload-area:active {
    animation: pulse 0.3s ease;
}

/* 工具区样式 */
.tools-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.tools-filter {
    display: flex;
    gap: 1rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

.tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool-card {
    background: var(--card-background);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 在现有的CSS中添加logo样式 */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 32px; /* 调整这个值以适应你的logo大小 */
    width: auto;
    object-fit: contain;
}

/* 更新logo相关样式 */
.main-nav .logo {
    display: flex;
    align-items: center;
}

.main-nav .logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.main-nav .logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.main-nav .logo a:hover img {
    transform: scale(1.05);
}

/* 工具页面样式 */
.tool-page {
    padding-top: 80px; /* 为固定导航栏留出空间 */
}

.tool-header {
    text-align: center;
    padding: 2rem 1rem; /* 减小上下内边距 */
}

.tool-header h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.tool-description {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* 上传区域样式 */
.upload-section {
    max-width: 600px; /* 减小最大宽度 */
    margin: 0 auto;
    padding: 0 1rem;
}

.upload-area {
    background: white;
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    padding: 2rem; /* 减小内边距 */
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.upload-area:hover {
    background: rgba(0,188,212,0.05);
    border-color: var(--primary-color);
}

.upload-area i {
    font-size: 36px; /* 减小图标大小 */
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.upload-area p {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.upload-area .support-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 处理按钮样式 - 完全重写 */
.process-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 1.5rem auto 0;
    padding: 0.8rem 2rem;
    background-color: #00BCD4;  /* 使用具体的颜色值 */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;  /* 添加定位 */
    z-index: 1;         /* 确保按钮始终在顶层 */
}

.process-button:hover {
    background-color: #0097A7;  /* 稍深的颜色 */
}

.process-button:active {
    background-color: #00838F;  /* 点击时的颜色 */
}

.process-button .material-icons {
    font-size: 20px;
}

/* 移除所有可能导致按钮消失的动画和过渡效果 */

/* 添加处理中的动画样式 */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rotating {
    animation: rotate 1s linear infinite;
}

/* 更新处理按钮禁用状态样式 */
.process-button:disabled {
    background-color: #ccc;
    cursor: wait;
}

/* 添加文件输入相关样式 */
.upload-area {
    position: relative;  /* 添加相对定位 */
}

.file-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
    z-index: 1;  /* 确保label在最上层 */
}

/* 确保upload-area的内容可见 */
.upload-area i,
.upload-area p,
.upload-area .support-text {
    position: relative;
    z-index: 2;
}

/* 文件信息容器样式 */
.file-info-container {
    margin-top: 1rem;
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.8rem 1rem;
    margin-top: 1rem;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.file-icon {
    color: #2196f3;
}

.file-name {
    color: #333;
    font-size: 0.9rem;
}

.cancel-file {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.cancel-file:hover {
    background: rgba(0,0,0,0.1);
    color: #333;
}

/* 隐藏默认文件输入框 */
input[type="file"] {
    display: none;
}

/* 进度条容器样式 */
.progress-container {
    width: 100%;
    max-width: 400px;
    margin: 1.5rem auto;
    display: none; /* 默认隐藏 */
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 3s linear;
}

/* 进度文本样式 */
.progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* 选项按钮容器 */
.options-container {
    display: none; /* 默认隐藏 */
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.options-container.show {
    opacity: 1;
}

.view-chart-btn,
.download-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.view-chart-btn {
    background-color: var(--primary-color);
    color: white;
}

.download-btn {
    background-color: #f5f5f5;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.view-chart-btn:hover,
.download-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
  