/* Prime Mailbox 主样式文件 */
/* 现代专业设计风格 - 使用Poppins + Open Sans字体组合 */

/* Google Fonts 导入 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Open+Sans:wght@300;400;500;600;700;800&display=swap');

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

body {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    background-color: #FFFFFF;
    color: #000000;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 全局标题字体 - 使用Poppins */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    font-weight: 600;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

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

/* 导航栏样式 */
.header {
    background-color: #FFFFFF;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #0097b2;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 80px;
    width: auto;
    max-width: 400px;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: #000000;
    text-decoration: none;
    font-weight: normal;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    line-height: 1.5;
}

.nav-link:hover {
    text-decoration: underline;
}

.nav-link.active {
    text-decoration: underline;
}

/* Sign In 按钮特殊样式 - 完全复制ID.me的设计 */
.nav-link.btn-signin {
    background-color: #30975c !important;
    color: #ffffff !important;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    border: none;
    transition: all 0.2s ease-in-out;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: auto;
    box-sizing: border-box;
    vertical-align: baseline;
}

.nav-link.btn-signin:hover {
    background-color: #2a8550 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: none;
    box-shadow: none;
}

.nav-link.btn-signin:active {
    background-color: #247247 !important;
    transform: none;
    box-shadow: none;
}

.nav-link.btn-signin:focus {
    outline: 2px solid #30975c;
    outline-offset: 2px;
}

/* 主要内容区域 */
.main-content {
    padding: 80px 0;
    margin-top: 0;
}

.hero-section {
    display: flex;
    align-items: center;
    min-height: 60vh;
    padding-top: 40px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    text-align: left;
    max-width: 500px;
}

.hero-image {
    flex: 1;
    text-align: center;
    max-width: 600px;
}

.delivery-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

.delivery-image:hover {
    transform: scale(1.02);
}

.hero-title {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    color: #333333;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 10px;
}

.hero-price {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    color: #0097b2;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: -0.2px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #0097b2;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #007a94;
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
}

/* 表单样式 */
.form-container {
    max-width: 600px;
    margin: 60px auto 50px;
    padding: 50px 60px;
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.form-group {
    margin-bottom: 25px;
}

.form-container:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

/* 表单标题样式 */
.form-container h1 {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #0097b2;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.form-container p {
    font-size: 16px;
    color: #666666;
    line-height: 1.5;
}

/* 表单按钮增强 */
.form-container .btn {
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-container .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 151, 178, 0.3);
}

/* 链接样式增强 */
.form-container a {
    color: #0097b2;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-container a:hover {
    color: #007a94;
    text-decoration: underline;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333333;
    font-size: 15px;
}

.form-input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-input:focus {
    outline: none;
    border-color: #0097b2;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 151, 178, 0.15);
    transform: translateY(-1px);
}

/* 卡片样式 */
.card {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.card-header {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

/* 邮件列表样式 */
.mail-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #FFFFFF;
}

.mail-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.mail-info {
    flex: 1;
}

.mail-date {
    color: #666666;
    font-size: 14px;
}

.mail-actions {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* 仪表板样式 */
.dashboard {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    min-height: 80vh;
}

.sidebar {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 10px;
}

.sidebar-nav a {
    display: block;
    padding: 10px 15px;
    color: #333333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: #0097b2;
    color: #FFFFFF;
}

.dashboard-content {
    padding: 40px 20px 20px;
}

/* 统计面板 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #0097b2;
    display: block;
}

.stat-label {
    color: #666666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 用户状态样式 */
.status-active {
    color: #28a745;
    font-weight: bold;
}

.status-inactive {
    color: #dc3545;
    font-weight: bold;
}

.status-suspended {
    color: #ffc107;
    font-weight: bold;
}

.subscription-benefits {
    color: #28a745;
    font-weight: bold;
    margin-top: 10px;
}

/* 图片保护 - 防止拖动和保存 */
img {
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    -webkit-touch-callout: none;
    -webkit-context-menu: none;
    context-menu: none;
}

/* 禁用右键菜单 */
img::-webkit-media-controls {
    display: none !important;
}

img::-webkit-media-controls-panel {
    display: none !important;
}

/* 平板设备适配 */
@media (max-width: 1024px) and (min-width: 769px) {
    .form-container {
        max-width: 500px;
        padding: 45px 50px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .hero-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-image {
        max-width: 100%;
        order: -1; /* 在移动设备上图片显示在上方 */
    }
    
    .delivery-image {
        max-width: 350px;
    }
    
    .hero-section {
        padding: 80px 0 60px;
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .logo-image {
        height: 60px;
        max-width: 280px;
    }
    
    .form-container {
        max-width: 95%;
        margin: 30px auto 20px;
        padding: 30px 20px;
        border-radius: 12px;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    }
    
    .form-container h1 {
        font-size: 24px;
    }
    
    .form-input {
        padding: 14px 16px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .form-container .btn {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* 工具类 */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

/* 地址管理样式 */
.address-card {
    transition: box-shadow 0.2s ease;
}

.address-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    line-height: 1.2;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: 1px solid #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #0097b2;
}

/* 租户状态徽章 */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 12px;
}

.status-badge.status-active {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 模态框头部 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #0097b2;
}

.modal-content h3 {
    margin: 0;
    color: #0097b2;
    font-size: 24px;
    font-weight: bold;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: #f5f5f5;
    color: #333;
    transform: scale(1.1);
}

/* 表单行布局 */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group-half {
    flex: 0 0 calc(50% - 10px);
}

/* 表单操作按钮 */
.form-actions {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-primary {
    background-color: #0097b2;
    color: white;
}

.btn-primary:hover {
    background-color: #007a94;
}

.btn-icon {
    margin-right: 8px;
    font-size: 14px;
}

/* 任务信息卡片 */
.task-info-card {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #0097b2;
}

.task-info-card p {
    margin: 8px 0;
    font-size: 16px;
}

.task-info-card strong {
    color: #0097b2;
    font-weight: 600;
}

/* 货币转换卡片样式 */
.currency-info-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #0097b2;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.currency-info-card h4 {
    margin: 0 0 15px 0;
    color: #0097b2;
    font-size: 18px;
    font-weight: 600;
}

.conversion-details {
    display: grid;
    gap: 10px;
}

.conversion-details p {
    margin: 0;
    padding: 8px 12px;
    background-color: white;
    border-radius: 6px;
    border-left: 4px solid #0097b2;
    font-size: 16px;
}

.conversion-details span {
    color: #0097b2;
    font-weight: 700;
}

/* 支付方式字段样式 */
.payment-fields {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 邮件模板样式 */
.email-instructions {
    margin-bottom: 25px;
}

.instruction-card {
    background-color: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 20px;
}

.instruction-card h4 {
    margin: 0 0 15px 0;
    color: #0056b3;
    font-size: 16px;
}

.instruction-card ol {
    margin: 0;
    padding-left: 20px;
}

.instruction-card li {
    margin-bottom: 8px;
    color: #333;
}

.email-template-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.copy-field {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.copy-field .form-input {
    flex: 1;
}

.copy-btn {
    background-color: #0097b2;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.copy-btn:hover {
    background-color: #007a94;
}

.copy-btn:active {
    background-color: #28a745;
}

.email-footer {
    text-align: center;
    padding: 15px;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.email-footer p {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #0097b2;
    font-weight: 600;
}

/* 佣金管理样式 */
.commission-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.commission-stat-card {
    background-color: #0097b2;
    color: white;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(0, 151, 178, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.commission-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 151, 178, 0.3);
}

.commission-stat-card .stat-icon {
    font-size: 32px;
    opacity: 0.9;
}

.commission-stat-card .stat-info {
    display: flex;
    flex-direction: column;
}

.commission-stat-card .stat-number {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 5px;
    color: white;
}

.commission-stat-card .stat-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.commission-filters {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 佣金表格样式 */
.commission-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.commission-table th,
.commission-table td {
    padding: 16px 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.commission-table th {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    font-weight: 700;
    color: #495057;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.commission-table tr:hover {
    background-color: rgba(0, 123, 255, 0.04);
    transition: background-color 0.2s ease;
}

.commission-table tbody tr:last-child td {
    border-bottom: none;
}

.commission-amount {
    font-weight: 600;
    color: #495057;
}

.revenue-highlight {
    color: #28a745 !important;
    font-weight: 700;
    background-color: rgba(40, 167, 69, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
}

.commission-type {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.commission-type.subscription {
    background-color: #d4edda;
    color: #155724;
}

.commission-type.forwarding {
    background-color: #fff3cd;
    color: #856404;
}

.payout-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

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

.payout-status.ready {
    background-color: #d1ecf1;
    color: #0c5460;
}

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

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

.payout-status.email_sent,
.payout-status.email-sent {
    background-color: #cce7ff;
    color: #0056b3;
}

/* 响应式佣金统计 */
@media (max-width: 768px) {
    .commission-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .commission-stat-card {
        padding: 20px;
    }
    
    .commission-stat-card .stat-icon {
        font-size: 28px;
    }
    
    .commission-stat-card .stat-number {
        font-size: 24px;
    }
}

/* 优化模态框内的表单样式 */
.modal .form-group {
    margin-bottom: 25px;
}

.modal .form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333333;
    font-size: 16px;
}

.modal .form-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.modal .form-input:focus {
    outline: none;
    border-color: #0097b2;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 151, 178, 0.1);
}

.modal .form-input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #dee2e6;
}

.modal .form-input[readonly]:focus {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    box-shadow: none;
}

.modal .form-input::placeholder {
    color: #999999;
    font-style: italic;
}

.modal small {
    color: #666666;
    font-size: 14px;
    margin-top: 5px;
    display: block;
    font-style: italic;
}

.modal textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

/* 模态框按钮样式 */
.modal .form-group:last-child {
    margin-top: 35px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal .btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.modal .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 响应式模态框 */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        margin: 5% auto;
        padding: 25px;
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-content h3 {
        font-size: 20px;
    }
    
    .modal-header {
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
    
    .modal-close {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    
    /* 在移动设备上表单行变为单列 */
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 20px;
    }
    
    .form-group-half {
        flex: 1;
    }
    
    .modal .form-input {
        padding: 12px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
        margin-top: 30px;
        padding-top: 15px;
    }
    
    .modal .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* ================================
   页脚样式
   ================================ */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 20px 0;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3.footer-title {
    font-family: 'Poppins', sans-serif;
    color: #0097b2;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 0;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-image {
    height: 60px; /* 从40px增加到60px */
    width: auto;
    /* 为logo添加背景和边框以提高在深色背景上的可见性 */
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 15px; /* 适当增加内边距 */
    border-radius: 8px; /* 稍微增加圆角 */
    /* 或者使用白色滤镜如果需要的话 */
    /* filter: brightness(0) invert(1); */
}

.footer-description {
    color: #bdc3c7;
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0097b2;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    margin: 0;
    color: #95a5a6;
    font-size: 14px;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-legal-links a {
    color: #95a5a6;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #0097b2;
}

.footer-legal-links .separator {
    color: #7f8c8d;
    font-size: 12px;
}

/* 响应式页脚 */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px 0;
        margin-top: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-legal-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        margin-top: 40px;
        padding: 30px 0 15px 0;
    }
    
    .footer-legal-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-legal-links .separator {
        display: none;
    }
}

/* 博客页面样式 */
.blog-hero {
    background: linear-gradient(135deg, #0097b2 0%, #007a94 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.blog-subtitle {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.6;
}

.blog-posts {
    padding: 80px 0;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.blog-grid {
    display: grid;
    gap: 40px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-card.featured {
    border-left: 4px solid #0097b2;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.blog-category {
    background: #0097b2;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-date {
    color: #666;
    font-size: 14px;
}

.blog-card-title {
    margin-bottom: 15px;
}

.blog-card-title a {
    color: #333;
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #0097b2;
}

.blog-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: #f0f0f0;
    color: #666;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination-btn {
    padding: 10px 15px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: #0097b2;
    color: white;
    border-color: #0097b2;
}

/* 博客侧边栏 */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.widget-title {
    color: #0097b2;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.category-list,
.recent-posts {
    list-style: none;
}

.category-list li,
.recent-posts li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.category-list li:last-child,
.recent-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-link,
.recent-post-link {
    color: #666;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.category-link:hover,
.recent-post-link:hover {
    color: #0097b2;
}

.post-count {
    background: #f0f0f0;
    color: #666;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.cta-widget {
    background: linear-gradient(135deg, #0097b2 0%, #007a94 100%);
    color: white;
    text-align: center;
}

.cta-widget .widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.cta-widget p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-widget .btn {
    background: white;
    color: #0097b2;
}

.cta-widget .btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* 博客响应式设计 */
@media (max-width: 968px) {
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .blog-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .blog-title {
        font-size: 36px;
    }
    
    .blog-hero {
        padding: 60px 0 40px;
    }
    
    .blog-posts {
        padding: 60px 0;
    }
    
    .blog-card {
        padding: 20px;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
} 