/* 顽浍兔授权系统官网样式 - 浅蓝色主题 */

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

:root {
    --primary-color: #5DADE2;
    --primary-dark: #3498DB;
    --primary-light: #85C1E9;
    --secondary-color: #2E86C1;
    --accent-color: #1B4F72;
    --text-color: #2C3E50;
    --text-light: #5D6D7E;
    --bg-color: #F8F9FA;
    --bg-light: #EBF5FB;
    --white: #FFFFFF;
    --border-color: #D6EAF8;
    --success-color: #27AE60;
    --error-color: #E74C3C;
    --warning-color: #F39C12;
    --shadow: 0 2px 8px rgba(93, 173, 226, 0.15);
    --shadow-lg: 0 4px 16px rgba(93, 173, 226, 0.2);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

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

/* 导航栏 */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-dark);
    font-size: 1.5rem;
    font-weight: bold;
}

.brand-icon {
    font-size: 2rem;
    margin-right: 0.5rem;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.navbar-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--primary-dark);
}

.navbar-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-dark);
}

.btn-nav {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 6px;
}

.btn-nav:hover {
    background: var(--primary-dark);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-block {
    width: 100%;
}

/* 主页横幅 */
.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 页面横幅 */
.page-hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-desc {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 通用区块 */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.section-desc {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* 功能卡片 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.feature-card p {
    color: var(--text-light);
}

/* 产品卡片 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 2rem;
    position: relative;
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.product-header {
    margin-bottom: 1rem;
}

.product-header h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.product-version {
    color: var(--text-light);
    font-size: 0.9rem;
}

.product-desc {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.product-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-features li {
    padding: 0.5rem 0;
    color: var(--text-color);
}

.product-price {
    margin-bottom: 1.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-dark);
}

.period {
    color: var(--text-light);
    font-size: 1rem;
}

/* 统计数据 */
.stats {
    background: var(--bg-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

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

/* 详细功能 */
.feature-detail-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
}

.feature-detail-item.reverse {
    direction: rtl;
}

.feature-detail-item.reverse > * {
    direction: ltr;
}

.feature-detail-content h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.feature-detail-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

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

.feature-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.feature-list strong {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.feature-list span {
    color: var(--text-light);
    font-size: 0.95rem;
}

.feature-detail-image {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
}

.placeholder-image {
    color: var(--text-light);
    font-size: 1.2rem;
}

/* 技术优势 */
.tech-advantages {
    background: var(--bg-light);
}

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

.tech-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tech-item h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

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

/* 关于我们 */
.about-intro {
    background: var(--white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.about-content .lead {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* 公司理念 */
.company-values {
    background: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.value-card p {
    color: var(--text-light);
}

/* 时间线 */
.timeline-items {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.timeline-items::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: var(--shadow);
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-light);
}

/* 团队 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.team-avatar {
    margin-bottom: 1rem;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    background: var(--primary-light);
    color: var(--white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
}

.team-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-desc {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* 合作伙伴 */
.partners {
    background: var(--bg-light);
}

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

.partner-logo {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    color: var(--text-light);
}

/* 联系我们 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

/* 联系表单 */
.contact-form-section {
    background: var(--bg-light);
}

.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.required {
    color: var(--error-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.1);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

/* 提示框 */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #D5F4E6;
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.alert-error {
    background: #FADBD8;
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.faq-item h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

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

/* 页脚 */
.footer {
    background: var(--accent-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-desc {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-light);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

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

/* 登录页面 */
.login-page {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-light);
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
}

.login-footer a {
    color: var(--primary-dark);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* 管理后台 */
.admin-page {
    background: var(--bg-color);
}

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

.admin-sidebar {
    width: 260px;
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.sidebar-header p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav-item:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
}

.nav-item.active {
    background: var(--bg-light);
    color: var(--primary-dark);
    border-left: 3px solid var(--primary-color);
}

.nav-icon {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.badge {
    margin-left: auto;
    background: var(--error-color);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
}

.admin-header {
    background: var(--white);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    color: var(--primary-dark);
}

.user-info {
    color: var(--text-light);
}

.admin-content {
    padding: 2rem;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 3rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-dark);
}

.stat-label {
    color: var(--text-light);
}

.dashboard-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.dashboard-section h2 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-item {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.message-item:hover {
    border-color: var(--primary-color);
}

.message-item.unread {
    background: var(--bg-light);
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.message-time {
    color: var(--text-light);
    font-size: 0.9rem;
}

.message-subject {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.message-preview {
    color: var(--text-light);
    font-size: 0.95rem;
}

.no-data {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
}

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

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
}

.action-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
        display: none;
    }

    .navbar-menu.active {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .feature-detail-item,
    .feature-detail-item.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: var(--transition);
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }
}
