/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f7;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 44px;
}

.navbar-left .logo {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}

.navbar-right {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    opacity: 0.7;
}

/* 英雄区域样式 */
.hero {
    text-align: center;
    padding: 100px 20px;
    background-color: #fff;
}

.hero h1 {
    font-size: 56px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h2 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #666;
}

.hero p {
    font-size: 20px;
    color: #666;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: #0071e3;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0077ed;
}

.btn-secondary {
    background-color: #f5f5f7;
    color: #0071e3;
}

.btn-secondary:hover {
    background-color: #e8e8ed;
}

/* 特性区域样式 */
.features {
    padding: 100px 20px;
    background-color: #f5f5f7;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 60px;
}

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

.feature-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
}

/* 价格区域样式 */
.pricing {
    padding: 100px 20px;
    background-color: #fff;
    text-align: center;
}

.pricing h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 60px;
}

.pricing-card {
    max-width: 500px;
    margin: 0 auto;
    background-color: #f5f5f7;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pricing-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.pricing-card .price {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #0071e3;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
}

.pricing-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid #e8e8ed;
}

.pricing-card ul li:last-child {
    border-bottom: none;
}

/* 认证区域样式 */
.auth-section {
    padding: 100px 20px;
    background-color: #f5f5f7;
}

.auth-card {
    max-width: 500px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.auth-card h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.required {
    color: #ff3b30;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
}

.auth-link a {
    color: #0071e3;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* 下载区域样式 */
.download-section {
    padding: 100px 20px;
    background-color: #fff;
}

.download-section h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
}

.download-section p {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 60px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.download-card {
    background-color: #f5f5f7;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.download-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.download-card p {
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}

.download-notes {
    max-width: 800px;
    margin: 0 auto;
    background-color: #f5f5f7;
    border-radius: 12px;
    padding: 30px;
}

.download-notes h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.download-notes ul {
    list-style: disc;
    padding-left: 20px;
    color: #666;
}

.download-notes li {
    margin-bottom: 10px;
}

.download-notes a {
    color: #0071e3;
    text-decoration: none;
}

.download-notes a:hover {
    text-decoration: underline;
}

/* 支付区域样式 */
.payment-section {
    padding: 100px 20px;
    background-color: #f5f5f7;
}

.payment-section h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 60px;
}

.payment-card {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.payment-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.payment-card .price {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #0071e3;
}

.features-list {
    list-style: none;
    margin-bottom: 40px;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e8e8ed;
}

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

.payment-method {
    margin-bottom: 30px;
}

.payment-method h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.payment-option {
    margin-bottom: 10px;
}

.payment-option input {
    margin-right: 10px;
}

/* 支付成功区域样式 */
.success-section {
    padding: 100px 20px;
    background-color: #f5f5f7;
}

.success-card {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.success-card h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

.success-icon {
    display: inline-block;
    width: 80px;
    height: 80px;
    background-color: #34c759;
    color: #fff;
    border-radius: 50%;
    font-size: 48px;
    line-height: 80px;
    margin-bottom: 30px;
}

.success-card p {
    font-size: 18px;
    margin-bottom: 40px;
}

.activation-code-section {
    margin-bottom: 40px;
}

.activation-code-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.activation-code {
    background-color: #f5f5f7;
    border-radius: 8px;
    padding: 20px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 15px;
    word-break: break-all;
}

.code-note {
    font-size: 14px;
    color: #666;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 个人中心区域样式 */
.dashboard-section {
    padding: 100px 20px;
    background-color: #f5f5f7;
}

.dashboard-section h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 60px;
}

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

.dashboard-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dashboard-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8e8ed;
}

.user-info p {
    margin-bottom: 10px;
}

.user-info span {
    color: #666;
}

.activation-codes ul,
.payment-records ul {
    list-style: none;
}

.activation-codes li,
.payment-records li {
    padding: 15px 0;
    border-bottom: 1px solid #e8e8ed;
}

.activation-codes li:last-child,
.payment-records li:last-child {
    border-bottom: none;
}

.activation-codes .code {
    font-weight: 600;
    margin-bottom: 5px;
    word-break: break-all;
}

.activation-codes .expiry {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.payment-records .amount {
    font-weight: 600;
    color: #0071e3;
    margin-bottom: 5px;
}

.payment-records .date,
.payment-records .method,
.payment-records .status {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

/* 页脚样式 */
.footer {
    background-color: #1d1d1f;
    color: #86868b;
    padding: 40px 20px;
    margin-top: 100px;
}

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

.footer p {
    font-size: 14px;
}

/* 表单提交按钮 */
button[type="submit"] {
    width: 100%;
    padding: 14px;
    background-color: #0071e3;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #0077ed;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }
    
    .hero h2 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .navbar-right {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 12px;
    }
    
    .features h2,
    .pricing h2,
    .payment-section h2,
    .dashboard-section h2 {
        font-size: 28px;
    }
    
    .features,
    .pricing,
    .auth-section,
    .download-section,
    .payment-section,
    .success-section,
    .dashboard-section {
        padding: 60px 20px;
    }
    
    .pricing-card,
    .auth-card,
    .payment-card,
    .success-card {
        padding: 30px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* 消息样式 */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

.message.success {
    background-color: #34c759;
}

.message.error {
    background-color: #ff3b30;
}

.message.info {
    background-color: #0071e3;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0071e3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 工具选项样式 */
.tool-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.tool-option {
    background-color: #fff;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.tool-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.tool-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.tool-option h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.tool-option p {
    color: #666;
    font-size: 14px;
}

/* 套餐网格样式 */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.pricing-card button {
    width: 100%;
    margin-top: 20px;
}

/* 支付二维码样式 */
.qr-code {
    text-align: center;
    margin: 40px 0;
}

.qr-code img {
    max-width: 200px;
    margin-bottom: 20px;
}

.payment-info {
    text-align: center;
}

.payment-info p {
    color: #666;
    margin-bottom: 10px;
}

/* 激活码展示样式 */
.activation {
    padding: 100px 20px;
    background-color: #f5f5f7;
}

.activation-card {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.activation-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.activation-code-display {
    background-color: #f5f5f7;
    border-radius: 8px;
    padding: 20px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 15px;
    word-break: break-all;
}

.activation-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}