/*
Theme Name: Vanguard Cloak
Theme URI: https://vanguardcloak.com
Author: Vanguard Cloak
Author URI: https://vanguardcloak.com
Description: Vanguard Cloak 官方销售网站主题 - 专为插件销售设计的现代化主题，支持Stripe支付、用户账户、许可证管理等功能
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vanguard-cloak
Tags: e-commerce, payment, modern, responsive, chinese
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

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

/* 头部样式 */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.site-logo {
    font-size: 28px;
    font-weight: bold;
    color: #0073aa;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo::before {
    content: "🛡️";
    font-size: 32px;
}

.main-navigation {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-navigation a {
    font-weight: 500;
    color: #333;
    padding: 8px 0;
    position: relative;
}

.main-navigation a:hover {
    color: #0073aa;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #0073aa;
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: #0073aa;
    color: #fff;
}

.btn-primary:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,115,170,0.3);
}

.btn-secondary {
    background: #28a745;
    color: #fff;
}

.btn-secondary:hover {
    background: #218838;
}

.btn-outline {
    background: transparent;
    border: 2px solid #0073aa;
    color: #0073aa;
}

.btn-outline:hover {
    background: #0073aa;
    color: #fff;
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease;
}

.hero-cta {
    animation: fadeInUp 1.2s ease;
}

/* 产品展示区域 */
.product-section {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

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

.product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 40px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 500px;
    margin: 0 auto;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.product-icon {
    font-size: 80px;
    margin-bottom: 30px;
}

.product-name {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.product-description {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.product-features {
    list-style: none;
    text-align: left;
    margin: 30px 0;
    padding: 0;
}

.product-features li {
    padding: 12px 0;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-features li::before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    font-size: 20px;
}

.product-price {
    margin: 40px 0;
    font-size: 36px;
    font-weight: bold;
    color: #0073aa;
}

.price-label {
    font-size: 18px;
    color: #666;
    font-weight: normal;
    margin-right: 10px;
}

/* 功能特性区域 */
.features-section {
    padding: 80px 0;
    background: #f9f9f9;
}

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

.feature-item {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.feature-description {
    color: #666;
    line-height: 1.6;
}

/* 页脚 */
.site-footer {
    background: #2c3e50;
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 80px;
}

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

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ecf0f1;
    opacity: 0.8;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* 语言切换器 - Header中的按钮 */
.header-language-switcher {
    display: none; /* 隐藏，因为已经在导航中 */
}

.lang-switch-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-left: 15px;
    white-space: nowrap;
}

.lang-switch-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
}

/* 移动端语言切换器 */
@media (max-width: 768px) {
    .lang-switch-btn {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

/* 账户页面 */
.account-section {
    padding: 60px 0;
    min-height: 600px;
}

.account-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    border-bottom: 2px solid #ddd;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    color: #666;
}

.tab-button.active {
    border-bottom-color: #0073aa;
    color: #0073aa;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f9f9f9;
    font-weight: bold;
    color: #333;
}

.data-table tr:hover {
    background: #f9f9f9;
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

/* 许可证卡片 */
.license-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.license-key {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 14px;
    margin: 15px 0;
    word-break: break-all;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .header-content {
        position: relative;
        padding: 15px 0;
        flex-wrap: wrap;
    }
    
    .site-logo {
        font-size: 22px;
        flex: 1;
        min-width: 0;
    }
    
    .site-logo::before {
        font-size: 24px;
    }
    
    /* 显示移动端菜单按钮 */
    .mobile-menu-toggle {
        display: flex !important;
        order: 2;
        margin-left: auto;
    }
    
    /* 隐藏桌面端导航 */
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
    }
    
    .main-navigation.active {
        max-height: 600px;
        padding: 20px;
        opacity: 1;
        visibility: visible;
    }
    
    .main-navigation a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        width: 100%;
        text-align: left;
        font-size: 16px;
    }
    
    .main-navigation a:last-child {
        border-bottom: none;
    }
    
    .main-navigation a.btn {
        display: block;
        text-align: center;
        margin-top: 10px;
        padding: 12px 20px;
        border: 2px solid #0073aa;
        border-radius: 5px;
    }
    
    .main-navigation a.btn.btn-primary {
        background: #0073aa;
        color: #fff;
    }
    
    .main-navigation a.btn.btn-outline {
        background: transparent;
        color: #0073aa;
    }
    
    .main-navigation a::after {
        display: none;
    }
    
    /* 确保容器在移动端正确显示 */
    .container {
        padding: 0 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        padding: 30px 20px;
    }
    
    .account-tabs {
        flex-wrap: wrap;
    }
    
    /* 移动端表格响应式 */
    .data-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .data-table thead {
        display: none;
    }
    
    .data-table tbody {
        display: block;
    }
    
    .data-table tr {
        display: block;
        margin-bottom: 20px;
        background: #f9f9f9;
        border-radius: 8px;
        padding: 15px;
        border: 1px solid #eee;
    }
    
    .data-table td {
        display: block;
        text-align: right;
        padding: 8px 0;
        border: none;
        position: relative;
        padding-left: 50%;
    }
    
    .data-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        text-align: left;
        font-weight: bold;
        color: #666;
    }
    
    /* 移动端账户页面样式优化 */
    .account-section {
        padding: 20px 0;
    }
    
    .account-section > .container > div {
        padding: 20px 15px;
    }
    
    .license-card {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .license-key {
        word-break: break-all;
        font-size: 14px;
    }
    
    .license-key button {
        margin-top: 10px;
        width: 100%;
    }
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

