/* 全局样式 */
:root {
    --primary-color: #4e7ad3;
    --secondary-color: #66c3ff;
    --accent-color: #3a56e4;
    --text-color: #333;
    --text-light: #666;
    --background-color: #fff;
    --background-light: #f8f9fa;
    --border-color: #eaeaea;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
    
    /* 设备颜色 */
    --device-color: #e9e9e9;
    --device-screen: #ffffff;
    --device-border: #dddddd;
    --device-shadow: rgba(0, 0, 0, 0.15);
    
    /* 书籍封面颜色 */
    --book-cover-1: #4e7ad3;
    --book-cover-2: #66bb6a;
    --book-cover-3: #ff7043;
    --book-cover-4: #9c27b0;
    
    /* 模拟UI元素颜色 */
    --ui-bg: #f5f5f5;
    --ui-text: #757575;
    --ui-line: #e0e0e0;
    --ui-progress: #4caf50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

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

.btn-primary:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* 导航栏 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 12px;
}

.logo span {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 英雄区域 */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f1f9 100%);
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-device {
    flex: 1;
    display: flex;
    justify-content: center;
    transform: perspective(1000px) rotateY(-10deg);
    transition: var(--transition);
}

.hero-device:hover {
    transform: perspective(1000px) rotateY(0);
}

/* 设备模拟样式 */
.device-mockup {
    position: relative;
    width: 280px;
    height: 550px;
}

.device-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--device-color);
    border-radius: 36px;
    box-shadow: 0 20px 40px var(--device-shadow);
    overflow: hidden;
    padding: 12px;
}

.device-content {
    width: 100%;
    height: 100%;
    background-color: var(--device-screen);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.device-icon {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.device-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.device-shadow {
    position: absolute;
    width: 100%;
    height: 20px;
    bottom: -20px;
    left: 0;
    background: radial-gradient(ellipse at center, var(--device-shadow) 0%, transparent 70%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.hero .description {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

/* 特性部分 */
.features {
    padding: 100px 0;
    background-color: var(--background-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* 更多特性部分 */
.more-features {
    padding: 100px 0;
}

.more-features-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.more-features-content {
    flex: 1;
}

.feature-device {
    flex: 1;
    display: flex;
    justify-content: center;
}

.feature-device-inner {
    width: 300px;
    height: 550px;
    position: relative;
    background-color: var(--device-color);
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 20px 40px var(--device-shadow);
}

.feature-device-screen {
    width: 100%;
    height: 100%;
    background-color: var(--device-screen);
    border-radius: 24px;
    overflow: hidden;
}

.feature-device-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-menu-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--ui-line);
}

.feature-menu-bar span {
    font-size: 1.2rem;
    font-weight: 500;
}

.feature-menu-bar i {
    font-size: 1.2rem;
    color: var(--text-light);
}

.feature-book-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 15px;
}

.feature-book {
    background-color: var(--ui-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.feature-book:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.feature-book-cover {
    height: 120px;
    background-color: var(--book-cover-1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-book-cover.color-2 {
    background-color: var(--book-cover-2);
}

.feature-book-cover.color-3 {
    background-color: var(--book-cover-3);
}

.feature-book-cover.color-4 {
    background-color: var(--book-cover-4);
}

.feature-book-cover i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.feature-book-info {
    padding: 10px;
}

.feature-book-title {
    height: 10px;
    background-color: var(--ui-text);
    width: 80%;
    border-radius: 4px;
    margin-bottom: 8px;
    opacity: 0.2;
}

.feature-book-author {
    height: 8px;
    background-color: var(--ui-text);
    width: 60%;
    border-radius: 4px;
    opacity: 0.2;
}

.features-list {
    list-style: none;
}

.features-list li {
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.features-list i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.5rem;
}

/* 应用展示部分 */
.app-showcase {
    padding: 100px 0;
    background-color: var(--background-light);
}

.showcase-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.showcase-item {
    flex: 0 0 auto;
    width: 220px;
    text-align: center;
    transition: var(--transition);
}

.showcase-item:hover {
    transform: scale(1.05);
}

.showcase-device {
    width: 100%;
    height: 420px;
    background-color: var(--device-color);
    border-radius: 24px;
    padding: 10px;
    box-shadow: 0 10px 30px var(--shadow-color);
    margin-bottom: 15px;
}

.showcase-screen {
    width: 100%;
    height: 100%;
    background-color: var(--device-screen);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.showcase-screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--ui-line);
}

.showcase-screen-header span {
    font-weight: 500;
}

.showcase-screen-header i {
    color: var(--text-light);
}

.showcase-screen-content {
    flex: 1;
    padding: 12px;
    overflow: hidden;
}

/* 书库屏幕样式 */
.library-screen .book-item {
    display: flex;
    margin-bottom: 15px;
    background-color: var(--ui-bg);
    border-radius: 8px;
    padding: 10px;
}

.book-cover {
    width: 50px;
    height: 70px;
    background-color: var(--book-cover-1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.book-cover.alt-1 {
    background-color: var(--book-cover-2);
}

.book-cover.alt-2 {
    background-color: var(--book-cover-3);
}

.book-cover i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.book-details {
    flex: 1;
}

.book-title {
    height: 10px;
    background-color: var(--ui-text);
    width: 100%;
    border-radius: 4px;
    margin-bottom: 8px;
    opacity: 0.2;
}

.book-author {
    height: 8px;
    background-color: var(--ui-text);
    width: 70%;
    border-radius: 4px;
    opacity: 0.2;
    margin-bottom: 12px;
}

.book-progress {
    height: 4px;
    background-color: var(--ui-line);
    border-radius: 2px;
    overflow: hidden;
}

.book-progress span {
    display: block;
    height: 100%;
    width: 45%;
    background-color: var(--ui-progress);
}

/* 阅读界面样式 */
.reader-screen {
    background-color: var(--ui-bg);
}

.reader-page {
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    height: 100%;
}

.reader-chapter {
    height: 12px;
    background-color: var(--ui-text);
    width: 50%;
    border-radius: 4px;
    opacity: 0.2;
    margin-bottom: 20px;
}

.reader-text p {
    height: 8px;
    background-color: var(--ui-text);
    width: 100%;
    border-radius: 4px;
    opacity: 0.2;
    margin-bottom: 10px;
}

.reader-text p:nth-child(2) {
    width: 90%;
}

.reader-text p:nth-child(3) {
    width: 95%;
}

.reader-progress {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
}

.reader-progress-bar {
    flex: 1;
    height: 4px;
    background-color: var(--ui-line);
    border-radius: 2px;
    margin: 0 10px;
    overflow: hidden;
}

.reader-progress-bar span {
    display: block;
    height: 100%;
    width: 37%;
    background-color: var(--primary-color);
}

/* 详情页样式 */
.detail-screen .book-detail-header {
    display: flex;
    margin-bottom: 20px;
}

.book-detail-cover {
    width: 80px;
    height: 120px;
    background-color: var(--book-cover-1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.book-detail-cover.alt-3 {
    background-color: var(--book-cover-3);
}

.book-detail-cover i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.book-detail-info {
    flex: 1;
}

.book-detail-title {
    height: 12px;
    background-color: var(--ui-text);
    width: 90%;
    border-radius: 4px;
    margin-bottom: 8px;
    opacity: 0.2;
}

.book-detail-author {
    height: 10px;
    background-color: var(--ui-text);
    width: 70%;
    border-radius: 4px;
    opacity: 0.2;
    margin-bottom: 15px;
}

.book-detail-meta {
    display: flex;
    gap: 10px;
}

.book-detail-meta span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.book-detail-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.stat-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 4px solid var(--ui-line);
    position: relative;
    margin: 0 auto 8px;
}

.stat-circle span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    border-right-color: transparent;
    border-bottom-color: transparent;
    transform: rotate(-45deg);
    box-sizing: border-box;
}

.stat-value {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

.detail-button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    margin-top: 10px;
}

/* 设置界面样式 */
.settings-screen {
    background-color: var(--ui-bg);
}

.settings-group {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.settings-title {
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.settings-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--ui-line);
}

.settings-option:last-child {
    border-bottom: none;
}

.toggle-switch {
    width: 40px;
    height: 20px;
    background-color: var(--ui-line);
    border-radius: 10px;
    position: relative;
}

.toggle-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: var(--transition);
}

.toggle-dot.active {
    left: 22px;
    background-color: var(--primary-color);
}

.toggle-switch:has(.active) {
    background-color: rgba(78, 122, 211, 0.3);
}

.font-size-control {
    display: flex;
    align-items: center;
}

.font-size-slider {
    width: 80px;
    height: 4px;
    background-color: var(--ui-line);
    margin: 0 8px;
    border-radius: 2px;
    position: relative;
}

.font-size-slider span {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
}

.showcase-item p {
    font-weight: 500;
    color: var(--text-light);
    margin-top: 10px;
}

/* 联系部分 */
.contact {
    padding: 100px 0;
    background-color: var(--background-light);
    text-align: center;
}

.contact-description {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
    color: var(--text-light);
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-item {
    background-color: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px var(--shadow-color);
    min-width: 300px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item h3 {
    margin-bottom: 10px;
}

.contact-item p {
    color: var(--text-light);
}

/* 页脚 */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo .logo-icon {
    font-size: 3rem;
    color: white;
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-links-column h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-links-column h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links-column a {
    display: block;
    margin-bottom: 10px;
    color: #bdc3c7;
}

.footer-links-column a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-device {
        margin-bottom: 30px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .more-features-container {
        flex-direction: column-reverse;
    }

    .features-list {
        margin-top: 30px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .footer-links {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .showcase-container {
        gap: 40px;
    }

    .showcase-item {
        width: 250px;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
} 