/* ===========================================================
   门禁考勤系统页面样式
   主色调：深紫蓝色 (#5b4fc7, #6b5dd3)
   辅助色：紫色渐变系列
   =========================================================== */

:root {
    /* 门禁考勤系统专用颜色 - 深紫蓝色主题 */
    --access-primary: #5b4fc7;
    --access-primary-light: #6b5dd3;
    --access-primary-dark: #4a3fb5;
    --access-secondary: #8b7dff;
    --access-accent: #a599ff;
    --access-gradient: linear-gradient(135deg, #5b4fc7 0%, #8b7dff 100%);
    --access-gradient-reverse: linear-gradient(135deg, #8b7dff 0%, #5b4fc7 100%);
}

/* ===========================================================
   1. 产品头部样式覆盖 - 深紫蓝色主题
   =========================================================== */
.product-header {
    background: linear-gradient(135deg, #5b4fc7 0%, #7b6de8 50%, #8b7dff 100%);
}

.product-header h1 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

/* ===========================================================
   2. 系统概述区域
   =========================================================== */
.access-overview-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8f9ff 0%, #ffffff 100%);
}

.access-overview-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.overview-image {
    flex: 1;
    position: relative;
}

.overview-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(91, 79, 199, 0.2);
    transition: transform 0.4s ease;
}

.overview-image:hover img {
    transform: scale(1.05);
}

.overview-text {
    flex: 1;
}

.overview-text h2 {
    font-size: 2.2rem;
    color: var(--access-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.overview-text .subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.overview-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.highlight-item {
    display: flex;
    align-items: start;
    gap: 1rem;
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: var(--access-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(91, 79, 199, 0.3);
}

.highlight-text h4 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.highlight-text p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* ===========================================================
   3. 核心功能卡片 - 4个图标卡片
   =========================================================== */
.core-features-section {
    padding: 80px 0;
    background: #ffffff;
}

.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--access-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    border-color: var(--access-primary);
    box-shadow: 0 20px 40px rgba(91, 79, 199, 0.15);
    transform: translateY(-10px);
}

.feature-card-icon {
    width: 80px;
    height: 80px;
    background: var(--access-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(91, 79, 199, 0.3);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-card-icon {
    transform: rotateY(360deg);
    box-shadow: 0 15px 40px rgba(91, 79, 199, 0.4);
}

.feature-card h3 {
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* ===========================================================
   4. 认证方式 - 翻转卡片效果
   =========================================================== */
.authentication-methods-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8f9ff 0%, #ffffff 100%);
}

.auth-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.auth-card {
    perspective: 1000px;
    height: 350px;
}

.auth-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.auth-card:hover .auth-card-inner {
    transform: rotateY(180deg);
}

.auth-card-front,
.auth-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}

.auth-card-front {
    background: white;
    border: 2px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.auth-card-icon-large {
    width: 100px;
    height: 100px;
    background: var(--access-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(91, 79, 199, 0.3);
}

.auth-card-front h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.auth-card-front p {
    font-size: 1rem;
    color: #64748b;
    text-align: center;
    line-height: 1.6;
}

.auth-card-back {
    background: var(--access-gradient);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
}

.auth-card-back h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.auth-card-back ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-card-back ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.auth-card-back ul li:last-child {
    border-bottom: none;
}

.auth-card-back ul li i {
    color: #ffd700;
}

/* ===========================================================
   5. 应用场景 - 左右交替式
   =========================================================== */
.application-scenarios-section {
    padding: 80px 0;
    background: #ffffff;
}

.scenario-item {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
    position: relative;
}

.scenario-item::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
}

.scenario-item:last-child {
    margin-bottom: 0;
}

.scenario-item:last-child::after {
    display: none;
}

.scenario-image {
    flex: 1;
    position: relative;
}

.scenario-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(91, 79, 199, 0.15);
    transition: all 0.4s ease;
}

.scenario-image:hover img {
    transform: scale(1.05);
    box-shadow: 0 25px 70px rgba(91, 79, 199, 0.25);
}

.scenario-content {
    flex: 1;
}

.scenario-badge {
    display: inline-block;
    background: var(--access-gradient);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(91, 79, 199, 0.3);
}

.scenario-content h3 {
    font-size: 2rem;
    color: var(--access-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.scenario-content .scenario-desc {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.scenario-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.scenario-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9ff;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.scenario-feature-item:hover {
    background: #ede8ff;
    transform: translateX(5px);
}

.scenario-feature-item i {
    color: var(--access-primary);
    font-size: 1.2rem;
}

.scenario-feature-item span {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 500;
}

/* 左右交替布局 */
.scenario-item.reverse {
    flex-direction: row-reverse;
}

/* ===========================================================
   6. 系统优势 - 6个优势卡片
   =========================================================== */
.system-advantages-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8f9ff 0%, #ffffff 50%, #f8f9ff 100%);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.advantage-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    border: 2px solid #e2e8f0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(91, 79, 199, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.advantage-card:hover::before {
    opacity: 1;
}

.advantage-card:hover {
    border-color: var(--access-primary);
    box-shadow: 0 15px 40px rgba(91, 79, 199, 0.2);
    transform: translateY(-5px);
}

.advantage-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 1.5rem;
}

.advantage-number {
    width: 60px;
    height: 60px;
    background: var(--access-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(91, 79, 199, 0.3);
}

.advantage-title h3 {
    font-size: 1.4rem;
    color: #1e293b;
    margin: 0;
    font-weight: 600;
}

.advantage-card p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.8;
    margin: 0;
}

/* ===========================================================
   7. 技术参数 & 产品对比
   =========================================================== */
.tech-specs-section {
    padding: 80px 0;
    background: #ffffff;
}

.specs-table-wrapper {
    margin-top: 50px;
    overflow-x: auto;
}

.specs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(91, 79, 199, 0.1);
}

.specs-table thead {
    background: var(--access-gradient);
    color: white;
}

.specs-table th {
    padding: 20px;
    font-weight: 600;
    text-align: left;
    font-size: 1.1rem;
}

.specs-table tbody tr {
    transition: background 0.3s ease;
}

.specs-table tbody tr:hover {
    background: #f8f9ff;
}

.specs-table tbody tr:nth-child(even) {
    background: #fafbff;
}

.specs-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 1rem;
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--access-primary);
}

/* 产品对比表 */
.comparison-table {
    margin-top: 50px;
}

.comparison-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(91, 79, 199, 0.1);
    margin-bottom: 30px;
}

.comparison-card h3 {
    font-size: 1.8rem;
    color: var(--access-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.comparison-card h3 .badge {
    background: var(--access-gradient);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.comparison-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.comparison-feature {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 15px;
    background: #f8f9ff;
    border-radius: 12px;
}

.comparison-feature i {
    color: var(--access-primary);
    font-size: 1.2rem;
    margin-top: 2px;
}

.comparison-feature span {
    flex: 1;
    font-size: 1rem;
    color: #1e293b;
    line-height: 1.6;
}

/* ===========================================================
   8. FAQ 常见问题
   =========================================================== */
.faq-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8f9ff 0%, #ffffff 100%);
}

.faq-container {
    max-width: 900px;
    margin: 50px auto 0;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--access-primary-light);
    box-shadow: 0 10px 30px rgba(91, 79, 199, 0.1);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8f9ff;
}

.faq-question h4 {
    font-size: 1.2rem;
    color: #1e293b;
    margin: 0;
    font-weight: 600;
    flex: 1;
}

.faq-icon {
    width: 35px;
    height: 35px;
    background: var(--access-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    padding: 0 30px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 25px;
}

.faq-answer p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.8;
    margin: 0;
}

/* ===========================================================
   9. 响应式设计
   =========================================================== */

/* 平板设备 */
@media (max-width: 992px) {
    .access-overview-content {
        flex-direction: column;
        gap: 40px;
    }

    .scenario-item,
    .scenario-item.reverse {
        flex-direction: column;
        gap: 40px;
    }

    .scenario-features {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .feature-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 手机设备 */
@media (max-width: 768px) {
    .overview-text h2 {
        font-size: 1.8rem;
    }

    .overview-highlights {
        grid-template-columns: 1fr;
    }

    .feature-cards-grid {
        grid-template-columns: 1fr;
    }

    .auth-cards-grid {
        grid-template-columns: 1fr;
    }

    .scenario-content h3 {
        font-size: 1.6rem;
    }

    .comparison-features {
        grid-template-columns: 1fr;
    }
}

/* ===========================================================
   10. 动画效果
   =========================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating-icon {
    animation: float 3s ease-in-out infinite;
}
