/* unified-styles.css - 适用于所有Easy系列网站的统一样式 */

/* CSS 变量定义 - 方便统一管理颜色 */
:root {
    --primary-color: #34495e;
    --secondary-color: #3498db;
    --accent-color: #f1c40f;
    --danger-color: #e74c3c;
    --success-color: #2ecc71;
    --text-color: #333;
    --bg-color: #f4f7f6;
    --card-bg-color: #fff;
    --feature-bg-color: #ecf0f1;
    --gradient-primary: linear-gradient(135deg, #34495e, #2c3e50);
    --gradient-secondary: linear-gradient(135deg, #3498db, #6dd5fa);
    --gradient-danger: linear-gradient(135deg, #e74c3c, #e74c3c);
    --gradient-success: linear-gradient(135deg, #2ecc71, #6dd5fa);
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-top: 40px;
}

/* 导航栏样式 */
.navbar {
    background: var(--primary-color);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: right;
}

.navbar a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    margin-left: 25px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.navbar a:hover,
.navbar a.active {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar a:first-child {
    margin-left: 0;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 40px 0;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 8px 8px 0 0;
}

header h1 {
    font-size: 2.8em;
    margin: 0;
    letter-spacing: 2px;
}

header p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* 内容区块样式 */
section {
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

section:last-of-type {
    border-bottom: none;
}

h2 {
    color: var(--primary-color);
    border-left: 4px solid var(--secondary-color);
    padding-left: 10px;
    margin-top: 30px;
}

h3 {
    color: var(--primary-color);
    border-left: 3px solid var(--accent-color);
    padding-left: 10px;
    margin-top: 25px;
    font-size: 1.3em;
}

h4 {
    color: var(--primary-color);
    margin-top: 20px;
    font-size: 1.1em;
}

p, ul, ol {
    margin: 15px 0;
}

li {
    margin-bottom: 8px;
}

strong {
    color: var(--danger-color);
}

/* 版本信息提示框 */
.version-info,
.activation-notice,
.tip,
.download-info {
    background: linear-gradient(135deg, #FFE0B2, #FFF8E1);
    border: 2px solid var(--success-color);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.version-info h3,
.activation-notice h3 {
    color: #262D63;
    margin-top: 0;
    font-size: 1.3em;
}

.version-badge {
    display: inline-block;
    background: var(--success-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    margin-left: 10px;
}

.activation-notice {
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
    border: 2px solid #FF9800;
    text-align: center;
}

.activation-notice h3 {
    color: #E65100;
}

.activation-notice strong {
    color: #BF360C;
    font-size: 1.1em;
}

.tip {
    background-color: #ecf0f1;
    border-left: 4px solid #95a5a6;
    color: #555;
    font-size: 0.9em;
}

/* 特色功能列表 */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    background: linear-gradient(135deg, #F5F7FA, #FFFFFF);
    padding: 25px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--success-color);
}

.feature-item h3 {
    color: #262D63;
    margin-top: 0;
    font-size: 1.2em;
    display: flex;
    align-items: center;
}

.feature-icon {
    font-size: 1.5em;
    margin-right: 10px;
}

/* 题型展示区域 */
.problem-types,
.types-grid-container {
    background: #F5F7FA;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.type-item {
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    color: #262D63;
    border: 2px solid var(--success-color);
    transition: all 0.3s ease;
}

.type-item:hover {
    background: var(--success-color);
    color: white;
}

/* 按钮样式 */
.download-box {
    text-align: center;
    margin-top: 30px;
}

.download-btn,
.btn-primary {
    display: inline-block;
    padding: 18px 40px;
    font-size: 1.3em;
    font-weight: bold;
    color: #fff;
    background: var(--gradient-danger);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    border: none;
}

.download-btn:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, #c0392b, #c0392b);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
    background: var(--gradient-secondary);
    padding: 12px 25px;
    font-size: 1.1em;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #2980b9, #57c1eb);
}

.copy-btn {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
}

.copy-btn:hover {
    background-color: #388E3C;
}

.copy-tip {
    display: none;
    color: var(--success-color);
    margin-left: 10px;
    font-weight: bold;
}

/* QQ群和提示 */
.qq-group {
    text-align: center;
    background: linear-gradient(135deg, #fafafa, #F1F8E9);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid var(--success-color);
    margin-top: 20px;
}

.qq-group a {
    font-size: 1.3em;
    color: #262D63;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    background: var(--secondary-color);
    color: white;
    border-radius: 25px;
    display: inline-block;
    transition: all 0.3s ease;
}

.qq-group a:hover {
    background: #388E3C;
    transform: scale(1.05);
}

/* 软件截图 */
.screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.screenshots img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.screenshots img:hover {
    transform: scale(1.05);
}

/* 用户评价 */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.testimonial-item {
    background: linear-gradient(135deg, #FFF, #F8F9FA);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--success-color);
    transition: transform 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-3px);
}

.testimonial-item p {
    font-style: italic;
    margin: 0 0 15px 0;
    color: #555;
}

.testimonial-item .author {
    font-weight: bold;
    text-align: right;
    color: #262D63;
}

/* FAQ */
.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-item h4 {
    color: #262D63;
    cursor: pointer;
    padding: 15px 20px;
    background: linear-gradient(135deg, #F5F7FA, #E8F5E8);
    border-radius: 8px;
    transition: background 0.3s;
    margin: 0;
    font-weight: bold;
}

.faq-item h4:hover {
    background: linear-gradient(135deg, #E8F5E8, #C8E6C9);
}

.faq-item p {
    padding: 15px 20px;
    background: #fafafa;
    border-left: 3px solid var(--success-color);
    margin: 0;
}

/* 代码块 */
.code-block {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-left: 4px solid var(--secondary-color);
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.list-style-none {
    list-style-type: none;
    padding-left: 0;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 30px;
    margin-top: 40px;
    color: #777;
    font-size: 0.9em;
    background: linear-gradient(135deg, #F5F7FA, #E8F5E8);
    border-radius: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin-top: 20px;
        padding: 15px;
    }
    
    header h1 {
        font-size: 2.2em;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .types-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .navbar a {
        margin-left: 15px;
        font-size: 0.9em;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .container {
        margin-top: 10px;
        padding: 10px;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    header p {
        font-size: 1em;
    }
    
    .download-btn,
    .btn-primary {
        padding: 12px 25px;
        font-size: 1.1em;
    }
    
    .feature-item {
        padding: 15px;
    }
}

/* =========================== */
/* clock.html 特有样式 */
/* =========================== */
.countdown {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin: 2rem 0 1rem 0;
    flex-wrap: wrap;
}

.time-box {
    background: var(--gradient-secondary);
    color: white;
    padding: 1.1rem 1.1rem 0.7rem 1.1rem;
    border-radius: 12px;
    min-width: 80px;
    box-shadow: 0 2px 8px rgba(52,152,219,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 500;
    transition: transform 0.2s;
}

.time-box:hover {
    transform: scale(1.08);
}

.number {
    font-size: 2.1rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    line-height: 1.1;
    margin-bottom: 0.2rem;
    text-shadow: 0 2px 8px rgba(52,152,219,0.13);
    color: #fff;
}

.label {
    font-size: 1.05rem;
    margin-top: 0;
    letter-spacing: 0.5px;
    line-height: 1.1;
    color: #eaf6fb;
    text-shadow: 0 1px 4px #3498db33;
}

.expired {
    color: var(--danger-color);
    font-size: 1.3rem;
    font-weight: bold;
}

.info {
    margin: 0.5rem 0 0.2rem 0;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.2;
}

.custom-days-info,
.date-diff-info {
    margin: 0.1rem 0 0.1rem 0;
    line-height: 1.1;
}

.stats-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    font-size: 1.1rem;
    color: #e17055;
    font-weight: 500;
    line-height: 1.1;
    background: none;
    border-radius: 0;
    padding: 0;
    margin-top: 0.5rem;
    box-shadow: none;
    font-family: inherit;
    text-shadow: none;
}

.stats-list div {
    font-size: 1.1rem;
    color: #e17055;
    font-weight: 500;
    font-family: inherit;
    letter-spacing: 0;
    text-shadow: none;
    margin: 0.1rem 0;
    transition: none;
}

.stats-list div:first-child {
    color: #43a047;
    text-shadow: 0 1px 4px #a5d6a7cc;
}

.stats-list div:last-child {
    color: #f57c00;
    text-shadow: 0 1px 4px #ffe0b2cc;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
}

/* 表单元素 */
input[type="text"],
input[type="number"],
input[type="datetime-local"],
input[type="date"],
input[type="time"],
select,
textarea {
    font-size: 1.1rem;
    padding: 0.7rem 0.7rem;
    border: 2px solid var(--secondary-color);
    border-radius: 6px;
    outline: none;
    margin-bottom: 1rem;
    transition: border 0.2s;
    box-sizing: border-box;
    background: #e6fae6;
    color: #222;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
select:focus,
textarea:focus {
    border: 2px solid var(--success-color);
}

.module-section {
    background: #fffbe8 !important;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(253,203,110,0.08);
    width: 100%;
    max-width: 420px;
    margin-bottom: 1.2rem;
    padding: 15px;
}

/* =========================== */
/* docs.html 特有样式 */
/* =========================== */
.doc-content {
    padding: 20px;
}

.doc-content h2, .doc-content h3, .doc-content h4 {
    color: var(--primary-color);
    border-left: 4px solid var(--secondary-color);
    padding-left: 10px;
    margin-top: 30px;
}

.doc-content h3 {
    font-size: 1.5em;
    border-left: 3px solid var(--accent-color);
}

.doc-content h4 {
    font-size: 1.2em;
    border-left: none;
    padding-left: 0;
}

.doc-content p, .doc-content ul, .doc-content ol {
    margin: 15px 0;
}

.doc-content li {
    margin-bottom: 8px;
}

.doc-content pre {
    background-color: var(--feature-bg-color);
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
}

.doc-content strong {
    color: var(--danger-color);
}

.doc-content code {
    background-color: #e0e6e8;
    padding: 2px 6px;
    border-radius: 4px;
}

/* =========================== */
/* healthclock.html 特有样式 */
/* =========================== */
.healthclock-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 15px 20px;
}

.healthclock-container header {
    padding: 30px 0;
    margin: -15px -20px 20px -20px;
}

.healthclock-container header h1 {
    font-size: 2em;
}

.healthclock-container header p {
    font-size: 1em;
}

.healthclock-container .section {
    padding: 15px 0;
}

.healthclock-container .navbar {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: right;
    gap: 10px;
}

.healthclock-container .navbar a {
    margin: 0;
    white-space: nowrap;
}

/* =========================== */
/* mathviz.html 特有样式 */
/* =========================== */
.icon {
    margin-bottom: 15px;
    height: 60px;
    width: 60px;
    fill: var(--secondary-color);
}