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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

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

/* 头部样式 */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

/* 汉堡菜单样式 */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    z-index: 1001;
}

/* 桌面端导航链接 */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    transition: all 0.3s ease;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
    display: block;
    padding: 5px 0;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* 主内容区域样式 */
.apple-cert,
.ipa-upload,
.android-cert,
.app-record,
.certificate,
.member,
.pricing,
.index {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #2d3748;
}

/* 通用容器样式 */
.cert-container,
.upload-container,
.cert-form,
.upload-records {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 0 auto;
}

/* 特定容器样式 */
.upload-container {
    max-width: 800px;
}

.cert-form {
    max-width: 800px;
}

.upload-records {
    margin-top: 60px;
}

/* 信息框样式 */
.info-box {
    background: #edf2f7;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #667eea;
}

.info-box h3 {
    margin-bottom: 10px;
    color: #2d3748;
    font-size: 1.2rem;
}

.info-box p {
    color: #4a5568;
    margin-bottom: 8px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.btn.secondary {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}

.btn.success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-container {
    text-align: center;
    margin-top: 40px;
}

/* 表格样式 */
.cert-table,
.records-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    overflow-x: auto;
}

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

.cert-table th,
.records-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #2d3748;
    white-space: nowrap;
}

.cert-table tr:hover,
.records-table tr:hover {
    background: #f7fafc;
}

/* 状态标签样式 */
.cert-status,
.status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-active,
.status-success {
    background: #c6f6d5;
    color: #22543d;
}

.status-expired,
.status-failed {
    background: #fed7d7;
    color: #742a2a;
}

.status-pending {
    background: #feebc8;
    color: #744210;
}

/* 操作按钮样式 */
.table-actions,
.record-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn,
.record-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.action-btn.download,
.record-btn.view {
    background: #4299e1;
    color: white;
}

.action-btn.upload {
    background: #48bb78;
    color: white;
}

.action-btn.p12 {
    background: #ed8936;
    color: white;
}

.record-btn.download {
    background: #48bb78;
    color: white;
}

.record-btn.delete {
    background: #f56565;
    color: white;
}

.action-btn:hover,
.record-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

/* 文件上传样式 */
.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-label {
    display: block;
    padding: 20px;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    text-align: center;
    color: #4a5568;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.file-label:hover {
    border-color: #667eea;
    background: #edf2f7;
}

.file-label i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    color: #667eea;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2d3748;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #718096;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #2d3748;
}

/* 备注样式 */
.note {
    background: #fff3cd;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ffeeba;
    color: #856404;
    margin-top: 20px;
    font-size: 0.95rem;
}

.note i {
    margin-right: 10px;
    font-weight: bold;
}

/* 帮助文章区块样式 */
.help-section {
    padding: 80px 0;
    background-color: #f5f7fa;
}

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

.article-card {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.article-card h4 {
    margin-bottom: 10px;
    color: #2d3748;
}

.article-card h4 a {
    color: inherit;
    text-decoration: none;
}

.article-card p {
    color: #4a5568;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.article-card a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: color 0.3s ease;
}

.article-card a:hover {
    color: #5a67d8;
}

/* 上传记录样式 */
.records-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 25px;
    color: #2d3748;
}

.file-name {
    font-weight: 600;
    color: #2d3748;
}



/* 证书申请和App上架服务样式 */
.certificate-services {
    padding: 80px 0;
}

.services-list {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e2e8f0;
}

.service-item:last-child {
    border-bottom: none;
}

.service-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #2d3748;
}

.service-info p {
    color: #718096;
    font-size: 0.95rem;
}

.service-period {
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
}

.contact-section {
    margin-top: 60px;
    background: white;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.contact-section h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 20px;
    color: #2d3748;
    width: 100%;
}

.contact-section p {
    color: #718096;
    margin-bottom: 30px;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.contact-item {
    text-align: center;
    min-width: 150px;
    flex: 1;
    max-width: 250px;
    padding: 15px;
}

.contact-item h4 {
    margin-bottom: 10px;
    color: #2d3748;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.contact-item p {
    margin: 0;
    color: #4a5568;
    font-size: clamp(0.8rem, 1.8vw, 1rem);
    width: 100%;
    max-width: 100%;
}

/* 定价页面样式 */
.pricing-table {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.pricing-table table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.pricing-table th {
    background: white;
    color: #2d3748;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 2px solid #e2e8f0;
}

.pricing-table th:first-child {
    text-align: left;
    background: white;
    color: #2d3748;
    font-weight: 600;
    font-size: 1.1rem;
}

.pricing-table td {
    color: #4a5568;
}

.pricing-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: #2d3748;
}

.plan-header {
    background: #f7fafc;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #2d3748;
}

.plan-price {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
}

.plan-period {
    color: #718096;
    font-size: 0.9rem;
}

.feature-yes {
    color: #48bb78;
    font-weight: bold;
}

.feature-no {
    color: #e53e3e;
}

.pricing-table tr:last-child th,
.pricing-table tr:last-child td {
    border-bottom: none;
}

/* 尾部样式 */
footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

/* 公告栏样式 */
.announcement {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #744210;
    padding: 15px 0;
    text-align: center;
    font-weight: 500;
    font-size: 1rem;
}

.announcement a {
    color: #744210;
    font-weight: 600;
    text-decoration: underline;
    margin-left: 10px;
}

/* Hero section styles */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero section button styles */
.hero .btn {
    background: white;
    color: #667eea;
    padding: 6px 12px;
    font-size: 0.85rem;
    margin: 0 auto;
    justify-content: center;
    width: auto;
}

/* Services section styles */
.services {
    padding: 80px 0;
}

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

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2d3748;
}

.service-card p {
    color: #718096;
    text-align: center;
}

.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 响应式样式 */
@media (max-width: 992px) {
    .nav-links {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* 汉堡菜单显示 */
    .menu-toggle {
        display: block;
    }
    
    /* 移动端导航链接样式 */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        flex-direction: column;
        gap: 0;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    /* 导航链接显示状态 */
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        padding: 15px;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    /* 移动端布局调整 */
    .nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cert-container,
    .upload-container,
    .cert-form,
    .upload-records {
        padding: 25px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    /* 表格响应式处理 */
    .cert-table,
    .records-table,
    .pricing-table {
        display: block;
        overflow-x: auto;
    }
    
    .pricing-table table {
        width: 100%;
        min-width: 600px;
    }
    
    .table-actions,
    .record-actions {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 25px;
        width: 95%;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    body {
        overflow-y: auto;
    }
    
    .member-center {
        height: auto;
    }
    
    .member-info {
        flex-direction: column;
        text-align: center;
    }
    
    .member-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .member-status {
        grid-template-columns: 1fr;
    }
    
    /* 价格表格响应式优化 */
    .pricing-table th,
    .pricing-table td {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    .plan-name {
        font-size: 1.2rem;
    }
    
    .plan-price {
        font-size: 1.5rem;
    }
    
    /* Hero区域优化 */
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Services区域优化 */
    .services-grid,
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card,
    .article-card {
        padding: 20px;
    }
    
    /* 按钮优化 */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* 联系信息区域优化 */
    .contact-details {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-item {
        max-width: 100%;
    }
}

/* 小屏手机优化 */
@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .cert-container,
    .upload-container,
    .cert-form,
    .upload-records {
        padding: 20px 15px;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 10px 6px;
        font-size: 0.85rem;
    }
}