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

body {
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
    background: linear-gradient(135deg, #f5f3ef 0%, #e8e4d9 100%);
    min-height: 100vh;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    background: linear-gradient(135deg, #8b4513 0%, #654321 100%);
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header .logo h1 {
    font-size: 2.5em;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header .logo p {
    font-size: 1.1em;
    opacity: 0.9;
}

.content-wrapper {
    display: flex;
    flex: 1;
    padding: 20px;
    gap: 20px;
}

.main-content {
    flex: 1;
    display: block;
}

.content-detail {
    padding: 20px;
}

.content-detail h2 {
    color: #8b4513;
    font-size: 1.8em;
    margin-bottom: 20px;
    border-bottom: 3px solid #d4af37;
    padding-bottom: 10px;
}

.content-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.content-section {
    margin-bottom: 25px;
    padding: 15px;
    background: #faf8f5;
    border-left: 4px solid #d4af37;
    border-radius: 5px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 1em;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

.comparison-table th {
    background: linear-gradient(135deg, #8b4513 0%, #654321 100%);
    color: white;
    font-weight: bold;
}

.comparison-table tbody tr:nth-child(even) {
    background-color: #f9f6f0;
}

.comparison-table tbody tr:nth-child(odd) {
    background-color: #fff;
}

.comparison-table tbody tr:hover {
    background-color: #f0ebe3;
}

.content-section h3 {
    color: #8b4513;
    font-size: 1.3em;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0d8c8;
}

.content-section h4 {
    color: #654321;
    font-size: 1.1em;
    margin: 15px 0 10px 0;
}

.content-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 8px;
    font-size: 1em;
}

.content-section strong {
    color: #8b4513;
    font-weight: bold;
}

.sidebar {
    width: 220px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: white;
    padding: 15px;
    text-align: center;
}

.sidebar-header h3 {
    font-size: 1.1em;
    margin: 0;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px;
}

.menu-item {
    width: 100%;
}

.sidebar-menu .menu-btn {
    background: linear-gradient(135deg, #8b4513 0%, #654321 100%);
    color: white;
    border: none;
    padding: 12px 15px;
    font-size: 0.9em;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-menu .menu-btn:hover {
    background: linear-gradient(135deg, #a0522d 0%, #8b4513 100%);
}

.sidebar-menu .menu-btn.active {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
}

.sidebar-menu .menu-btn .arrow {
    font-size: 0.7em;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.sidebar-menu .menu-btn.active .arrow {
    transform: rotate(90deg);
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    background: #faf8f5;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}

.menu-item.open .submenu {
    display: block;
}

.submenu li {
    padding: 10px 15px 10px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    font-size: 0.85em;
    border-bottom: 1px solid #e8e4d9;
}

.submenu li:last-child {
    border-bottom: none;
}

.submenu li:hover {
    background: #d4af37;
    color: white;
}

.content {
    flex: 1;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.hero {
    margin-bottom: 30px;
}

.hero h2 {
    color: #8b4513;
    font-size: 2em;
    margin-bottom: 15px;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 10px;
}

.hero p {
    font-size: 1.1em;
    color: #666;
    line-height: 1.9;
    margin-bottom: 25px;
    text-align: justify;
}

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

.feature-card {
    background: linear-gradient(135deg, #faf8f5 0%, #f0ebe6 100%);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.feature-card h3 {
    color: #8b4513;
    margin-bottom: 10px;
}

.feature-card p {
    color: #666;
    font-size: 0.9em;
    line-height: 1.6;
}

.about, .contact {
    margin-bottom: 30px;
}

.about h2, .contact h2 {
    color: #8b4513;
    font-size: 1.8em;
    margin-bottom: 15px;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 10px;
}

.about p {
    font-size: 1.1em;
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
}

.brand-info {
    font-size: 1.1em;
    color: #666;
    line-height: 2;
}

.brand-info p {
    margin-bottom: 12px;
}

.brand-info strong {
    color: #8b4513;
    font-weight: 600;
}

.icon {
    display: inline-block;
    width: 28px;
    text-align: center;
    font-size: 1.2em;
    margin-right: 8px;
    color: #d4af37;
}

.contact-info p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 8px;
}

.contact-info a {
    color: #666;
    text-decoration: none;
}

.contact-info a:hover {
    color: #8b4513;
    text-decoration: underline;
}

.footer {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    padding: 20px;
    margin-top: auto;
}

.main-menu {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.menu-btn {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.menu-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #e6c84a 0%, #d4af37 100%);
}

.menu-btn.active {
    background: linear-gradient(135deg, #8b4513 0%, #654321 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.copyright {
    text-align: center;
    color: #888;
    font-size: 0.9em;
}

.copyright a {
    color: #888;
    text-decoration: none;
}

.copyright a:hover {
    color: #fff;
    text-decoration: underline;
}

.mobile-main-menu {
    display: none;
}

.desktop-menu {
    display: flex;
}

/* 弹窗样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #ffffff;
    border-radius: 20px;
    max-width: 1050px;
    width: 96%;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(139, 69, 19, 0.1);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid #d4af37;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #8b4513 0%, #654321 100%);
    padding: 40px 50px;
    border-radius: 18px 18px 0 0;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 200px;
    height: 200px;
    background: rgba(255, 215, 0, 0.3);
    border-radius: 50%;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -8%;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-close:hover {
    background: rgba(255, 80, 80, 0.8);
    border-color: rgba(255, 255, 255, 0.6);
    transform: rotate(90deg);
}

.modal-overlay .modal-content .modal-header h2.modal-title {
    color: #ffffff !important;
    font-size: 1.5em;
    font-weight: 700;
    position: relative;
    z-index: 9999;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 18px;
    letter-spacing: 2.5px;
    line-height: 1.8;
    justify-content: center;
    text-align: center;
    margin: 0;
    padding: 0;
    border: none;
}

.modal-body {
    padding: 35px 45px;
    background: linear-gradient(135deg, #2c2416 0%, #1a1610 100%);
}

.modal-body .section {
    margin-bottom: 35px;
    padding: 30px 38px;
    background: rgba(139, 69, 19, 0.3);
    border-radius: 18px;
    line-height: 2.4;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.modal-body .section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, #ffd700 0%, #d4af37 100%);
}

.modal-body .section:last-child {
    margin-bottom: 0;
}

.modal-body .section h4 {
    color: #fffacd;
    font-size: 1.3em;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #d4af37;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.modal-body .section h4::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.4) 0%, transparent 100%);
}

.modal-body .section p {
    color: #ffffff;
    margin-bottom: 18px;
    font-size: 1.1em;
    text-align: justify;
    text-indent: 0;
}

.modal-body .section p:last-child {
    margin-bottom: 0;
}

.modal-body .section ul {
    margin: 20px 0 20px 35px;
    padding-left: 0;
}

.modal-body .section ul li {
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 2.2;
    position: relative;
    padding-left: 25px;
    list-style: none;
    font-size: 1.08em;
}

.modal-body .section ul li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: #ffd700;
    font-size: 1.1em;
}

.modal-body .section ul li:last-child {
    margin-bottom: 0;
}

/* 弹窗滚动条美化 */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f5f3ef;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4af37 0%, #8b4513 100%);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #e6c84a 0%, #9b5a2b 100%);
}

@media (max-width: 768px) {
    .header {
        padding-bottom: 10px;
        border-bottom: 3px solid #d4af37;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-main-menu {
        display: flex;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        padding: 15px;
        background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
        border-top: 2px solid #8b4513;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .desktop-menu {
        display: none;
    }
    
    .mobile-main-menu .menu-btn {
        padding: 10px 18px;
        font-size: 0.9em;
    }
    
    .content-wrapper {
        display: block;
        padding: 10px;
    }
    
    .sidebar {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .main-content {
        padding: 0;
    }
    
    .content-detail {
        padding: 15px;
    }
    
    .content-detail h2 {
        font-size: 1.4em;
    }
    
    .content-section {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .content-section h3 {
        font-size: 1.1em;
    }
    
    .content-section h4 {
        font-size: 1em;
    }
    
    .content-section p {
        font-size: 0.95em;
    }
    
    .copyright {
        padding: 15px;
    }
    
    .comparison-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.9em;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px;
        text-align: left;
        border: 1px solid #ddd;
    }
    
    .comparison-table th {
        background: linear-gradient(135deg, #8b4513 0%, #654321 100%);
        color: white;
        font-weight: bold;
    }
    
    .comparison-table tbody tr:nth-child(even) {
        background-color: #f9f6f0;
    }
    
    .comparison-table tbody tr:nth-child(odd) {
        background-color: #fff;
    }
    
    .comparison-table tbody tr:hover {
        background-color: #f0ebe3;
    }

    .modal-overlay {
        padding: 10px;
    }

    .modal-content {
        max-width: 100%;
        width: 100%;
        border-radius: 12px;
        max-height: 90vh;
    }

    .modal-header {
        padding: 50px 20px 18px;
        border-radius: 12px 12px 0 0;
    }

    .modal-close {
        top: 8px;
        right: 8px;
        width: 44px;
        height: 44px;
        font-size: 26px;
    }

    .modal-title {
        font-size: 1.2em;
        padding-right: 50px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-body .section {
        padding: 18px 20px;
        margin-bottom: 18px;
    }

    .modal-body .section h4 {
        font-size: 1.1em;
    }

    .modal-body .section p {
        font-size: 1em;
        line-height: 1.9;
    }

    .modal-body .section ul li {
        font-size: 1em;
        line-height: 1.8;
    }
}