/* assets/css/home.css */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    background: radial-gradient(circle at 50% 30%, rgba(0, 136, 204, 0.15) 0%, transparent 60%);
    overflow: hidden;
}

/* 波浪动画背景 */
.waves-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.waves {
    position: relative;
    width: 100%;
    height: 15vh;
    margin-bottom: -7px; /* 修复 Safari 底部缝隙 */
    min-height: 100px;
    max-height: 150px;
}

.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}
.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}
.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}
.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px,0,0);
    }
    100% { 
        transform: translate3d(85px,0,0);
    }
}

@media (max-width: 768px) {
    .waves {
        height: 40px;
        min-height: 40px;
    }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/noise.png') repeat;
    opacity: 0.03;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-subtitle {
    display: inline-block;
    color: var(--accent-cyan);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: var(--spacing-sm);
    padding: 6px 16px;
    border: 1px solid rgba(0, 180, 216, 0.2);
    border-radius: 0;
    background: rgba(0, 180, 216, 0.05);
}

.hero-title {
    font-size: 56px;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(to right, var(--text-main), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-regular);
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.hero-tags {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 14px;
}

.hero-tags span::before {
    content: '•';
    color: var(--primary-color);
    margin-right: 8px;
}

/* Common Section Adjustments */
main > .section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0; /* 使用固定或较大的 padding 而不是 100vh，避免刷新时因为高度突变导致锚点计算错误 */
}

.dark-section {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

/* Business Cards */
.business-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.business-card .tag {
    align-self: flex-start;
}

.business-card h3 {
    font-size: 24px;
    margin-bottom: var(--spacing-sm);
}

.business-card p {
    color: var(--text-regular);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.business-features {
    margin-bottom: var(--spacing-md);
}

.business-features li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.business-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.business-card .btn {
    align-self: flex-start;
}

/* Process Steps */
.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-sm);
    position: relative;
}

.process-step {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: var(--spacing-md);
    border-radius: 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.process-step-num {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin: 0 auto var(--spacing-sm);
}

.process-step h4 {
    margin-bottom: var(--spacing-xs);
    font-size: 18px;
}

.process-step p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title { font-size: 48px; }
    .process-grid { grid-template-columns: repeat(3, 1fr); gap: var(--spacing-md); }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 40px);
        padding-bottom: 60px;
    }
    .hero-title { font-size: 32px; }
    .hero-actions { flex-direction: column; }
    .process-grid { grid-template-columns: 1fr; }
}
