:root {
    --royal-blue: #1a2b6d;
    --royal-blue-light: #2a3b8d;
    --royal-blue-dark: #0a1b4d;
    --gold: #d4af37;
    --silver: #c0c0c0;
    --white: #ffffff;
    --light-bg: #f5f7ff;
    --gray: #666666;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--royal-blue);
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin: 15px auto;
    border-radius: 2px;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--royal-blue), var(--royal-blue-light));
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(26, 43, 109, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 43, 109, 0.3);
    background: linear-gradient(135deg, var(--royal-blue-light), var(--royal-blue));
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--royal-blue);
    border: 2px solid var(--royal-blue);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--royal-blue);
    color: white;
    transform: translateY(-3px);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo h1 {
    color: var(--royal-blue);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-logo span {
    color: var(--gold);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--royal-blue);
    transition: width 0.3s;
}

.nav-menu a:hover {
    color: var(--royal-blue);
}

.nav-menu a:hover:after {
    width: 100%;
}

.login-btn {
    background: var(--royal-blue);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
}

.login-btn:hover {
    background: var(--royal-blue-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--royal-blue);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hero {
    background: linear-gradient(135deg, var(--royal-blue), var(--royal-blue-dark));
    color: white;
    padding: 180px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

.hero-content h2 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.products {
    padding: 100px 0;
    background: var(--light-bg);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--royal-blue);
}

.product-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--royal-blue), var(--gold));
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--royal-blue);
}

.product-card h3 {
    margin-bottom: 15px;
    color: var(--royal-blue);
    font-size: 1.5rem;
}

.product-card p {
    color: #666;
    margin-bottom: 20px;
}

.product-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--royal-blue);
    text-decoration: none;
    font-weight: bold;
    position: relative;
}

.product-link:after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s;
}

.product-link:hover:after {
    transform: translateX(5px);
}

.pricing {
    padding: 100px 0;
    background: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    position: relative;
    border: 1px solid #eee;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 2px solid var(--royal-blue);
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(26, 43, 109, 0.15);
}

.pricing-card.featured:before {
    content: '推荐';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: white;
    padding: 5px 20px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

.pricing-card h3 {
    margin-bottom: 20px;
    color: var(--royal-blue);
    font-size: 1.5rem;
}

.price {
    font-size: 2.8rem;
    color: var(--royal-blue);
    margin-bottom: 20px;
    font-weight: 700;
}

.price span {
    font-size: 1rem;
    color: #666;
    font-weight: normal;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

.pricing-card ul li:before {
    content: '✓';
    color: var(--gold);
    font-weight: bold;
    margin-right: 10px;
}

.btn-buy, .btn-custom, .btn-trial {
    display: inline-block;
    width: 100%;
    padding: 14px;
    border-radius: 30px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-buy {
    background: linear-gradient(135deg, var(--royal-blue), var(--royal-blue-light));
    color: white;
    box-shadow: 0 4px 15px rgba(26, 43, 109, 0.2);
}

.btn-buy:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 43, 109, 0.3);
}

.btn-trial {
    background: linear-gradient(135deg, var(--gold), #e5c158);
    color: white;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-trial:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-custom {
    background: transparent;
    color: var(--royal-blue);
    border: 2px solid var(--royal-blue);
}

.btn-custom:hover {
    background: var(--royal-blue);
    color: white;
}

.calculator {
    padding: 100px 0;
    background: var(--light-bg);
}

.calc-form {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--royal-blue);
}

.form-group select, .form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-group select:focus, .form-group input:focus, .form-group textarea:focus {
    border-color: var(--royal-blue);
    outline: none;
}

.calc-result {
    margin-top: 30px;
    padding: 25px;
    background: var(--light-bg);
    border-radius: 10px;
    text-align: center;
    display: none;
    border-left: 4px solid var(--royal-blue);
}

.calc-result h3 {
    color: var(--royal-blue);
    margin-bottom: 10px;
}

#estimated-price {
    color: var(--gold);
    font-size: 2.2rem;
}

.about, .contact {
    padding: 100px 0;
}

.about {
    background: white;
}

.contact {
    background: var(--light-bg);
}

.about-content, .contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    color: var(--royal-blue);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.about-text p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.8;
}

.contact-info {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-info h4 {
    color: var(--royal-blue);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 15px;
    color: #555;
}

.contact-info strong {
    color: var(--royal-blue);
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-details {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-details h3 {
    color: var(--royal-blue);
    margin-bottom: 15px;
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-method span {
    font-size: 1.8rem;
    margin-right: 15px;
    color: var(--royal-blue);
}

.footer {
    background: var(--royal-blue-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--gold);
}

.footer-section h4 {
    margin-bottom: 15px;
    color: var(--gold);
}

.footer-section p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

.ai-assistant {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.ai-toggle {
    background: linear-gradient(135deg, var(--royal-blue), var(--royal-blue-light));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.2;
    transition: transform 0.3s;
}

.ai-toggle:hover {
    transform: scale(1.1);
}

.ai-chat {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    overflow: hidden;
}

.ai-header {
    background: linear-gradient(135deg, var(--royal-blue), var(--royal-blue-light));
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-close {
    cursor: pointer;
    font-size: 1.5rem;
}

.ai-messages {
    height: 250px;
    overflow-y: auto;
    padding: 15px;
}

.ai-message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
}

.ai-message.bot {
    background: #f0f2f5;
    border-bottom-left-radius: 5px;
}

.ai-message.user {
    background: var(--royal-blue);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.ai-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid #eee;
}

.ai-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px 0 0 20px;
    outline: none;
}

.ai-input button {
    background: var(--royal-blue);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.ai-input button:hover {
    background: var(--royal-blue-light);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.payment-methods {
    margin: 20px 0;
}

.payment-method {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.payment-method input {
    margin-right: 10px;
}

.payment-method label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.payment-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .about-content, .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px;
        gap: 15px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 150px 0 100px;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .product-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-form {
        padding: 25px;
    }
    
    .ai-chat {
        width: 90%;
        right: 5%;
        bottom: 80px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .product-card, .pricing-card {
        padding: 30px 20px;
    }
    
    .modal-content {
        padding: 20px;
    }
}