/* ========================================
   GREEN TECH MATRIX THEME - CSS STYLES
   Author: MiniMax Agent
   Version: 5.0
   Theme: Digital Matrix / Green Tech
   ======================================== */

/* ========== RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #0d0d0d;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* ========== MATRIX BACKGROUND ANIMATION ========== */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: 
        linear-gradient(90deg, transparent 98%, #00ff41 99%),
        linear-gradient(180deg, transparent 98%, #00ff41 99%);
    background-size: 40px 40px;
    opacity: 0.1;
    animation: matrix-grid-move 20s linear infinite;
}

.matrix-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, #00ff41 1px, transparent 1px),
        radial-gradient(circle at 80% 50%, #39ff14 1px, transparent 1px),
        radial-gradient(circle at 40% 50%, #00ff41 1px, transparent 1px);
    background-size: 60px 60px, 80px 80px, 100px 100px;
    animation: matrix-dots-pulse 8s ease-in-out infinite alternate;
    opacity: 0.3;
}

.matrix-bg::after {
    content: '';
    position: absolute;
    top: -100vh;
    left: 0;
    width: 2px;
    height: 200vh;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        #00ff41 10%, 
        #39ff14 50%, 
        #00ff41 90%, 
        transparent 100%);
    box-shadow: 
        0 0 10px #00ff41,
        20px 0 0 #39ff14,
        20px 0 10px #39ff14,
        40px 0 0 #00ff41,
        40px 0 10px #00ff41;
    animation: matrix-data-stream 3s linear infinite;
}

@keyframes matrix-grid-move {
    0% { transform: translateY(0); }
    100% { transform: translateY(40px); }
}

@keyframes matrix-dots-pulse {
    0% { opacity: 0.1; transform: scale(1); }
    100% { opacity: 0.4; transform: scale(1.2); }
}

@keyframes matrix-data-stream {
    0% { transform: translateY(-100vh) translateX(0); }
    25% { transform: translateY(100vh) translateX(20px); }
    50% { transform: translateY(-100vh) translateX(40px); }
    75% { transform: translateY(100vh) translateX(60px); }
    100% { transform: translateY(-100vh) translateX(80px); }
}

/* ========== CONTAINER & LAYOUT ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

/* ========== HEADER STYLES ========== */
.main-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
    position: relative;
}

.main-header__title {
    font-family: 'Source Code Pro', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: #00ff41;
    text-shadow: 
        0 0 5px #00ff41,
        0 0 10px #00ff41,
        0 0 20px #39ff14,
        0 0 40px #39ff14;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    animation: title-glow-pulse 3s ease-in-out infinite alternate;
    position: relative;
}

.main-header__title::before {
    content: '< ';
    color: #39ff14;
}

.main-header__title::after {
    content: ' />';
    color: #39ff14;
}

.main-header__subtitle {
    font-family: 'Source Code Pro', monospace;
    font-size: 1.2rem;
    font-weight: 400;
    color: #e0e0e0;
    opacity: 0.8;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes title-glow-pulse {
    0% {
        text-shadow: 
            0 0 5px #00ff41,
            0 0 10px #00ff41,
            0 0 20px #39ff14;
    }
    100% {
        text-shadow: 
            0 0 10px #00ff41,
            0 0 20px #00ff41,
            0 0 30px #39ff14,
            0 0 40px #39ff14;
    }
}

/* ========== CONTENT GRID ========== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* ========== SERVICE CARDS ========== */
.service-card {
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid #00ff41;
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 15px rgba(0, 255, 65, 0.2),
        0 4px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(0, 255, 65, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ff41, #39ff14, #00ff41);
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 0.3;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 0 30px rgba(0, 255, 65, 0.4),
        0 8px 40px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(0, 255, 65, 0.2);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 65, 0.1);
    border-radius: 50%;
    border: 2px solid #00ff41;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.card-icon svg {
    width: 30px;
    height: 30px;
}

.service-card__title {
    font-family: 'Source Code Pro', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: #00ff41;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px #00ff41;
}

.service-card__description {
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    opacity: 0.9;
}

.service-card__features {
    list-style: none;
    margin-bottom: 2rem;
}

.service-card__features li {
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    opacity: 0.8;
}

.service-card__features li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #00ff41;
    font-size: 0.8rem;
}

/* ========== BUTTONS ========== */
.service-card__button {
    display: inline-block;
    background: transparent;
    color: #00ff41;
    border: 2px solid #00ff41;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Source Code Pro', monospace;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-card__button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #00ff41;
    transition: left 0.3s ease;
    z-index: -1;
}

.service-card__button:hover::before {
    left: 0;
}

.service-card__button:hover {
    color: #0d0d0d;
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.5),
        inset 0 0 10px rgba(0, 255, 65, 0.2);
}

/* Pulse Button Animation */
.pulse-button {
    animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 
            0 0 5px #00ff41,
            0 0 10px #00ff41,
            0 0 20px rgba(0, 255, 65, 0.3);
    }
    50% {
        box-shadow: 
            0 0 10px #00ff41,
            0 0 20px #00ff41,
            0 0 30px rgba(0, 255, 65, 0.5),
            0 0 40px rgba(0, 255, 65, 0.2);
        transform: scale(1.05);
    }
}

/* ========== MAIN ACTION BUTTONS ========== */
.main-action-buttons {
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.main-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Source Code Pro', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    cursor: pointer;
    min-width: 180px;
    justify-content: center;
}

.main-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.main-action-btn:hover::before {
    left: 100%;
}

.btn-icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    filter: brightness(1.2);
}

.btn-text {
    position: relative;
    z-index: 2;
}

/* Primary Button - "立即进入" */
.main-action-btn--primary {
    background: linear-gradient(135deg, 
        rgba(0, 255, 65, 0.2) 0%, 
        rgba(57, 255, 20, 0.3) 50%, 
        rgba(0, 255, 65, 0.2) 100%);
    border-color: #00ff41;
    color: #00ff41;
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: primary-pulse 3s ease-in-out infinite;
}

.main-action-btn--primary:hover {
    background: linear-gradient(135deg, 
        rgba(0, 255, 65, 0.4) 0%, 
        rgba(57, 255, 20, 0.5) 50%, 
        rgba(0, 255, 65, 0.4) 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 0 30px rgba(0, 255, 65, 0.5),
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: #39ff14;
}

/* Secondary Button - "点击下单" */
.main-action-btn--secondary {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.8) 0%, 
        rgba(0, 255, 65, 0.1) 50%, 
        rgba(26, 26, 26, 0.8) 100%);
    border-color: rgba(0, 255, 65, 0.6);
    color: #e0e0e0;
    box-shadow: 
        0 0 15px rgba(0, 255, 65, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(0, 255, 65, 0.1);
}

.main-action-btn--secondary:hover {
    background: linear-gradient(135deg, 
        rgba(0, 255, 65, 0.1) 0%, 
        rgba(57, 255, 20, 0.2) 50%, 
        rgba(0, 255, 65, 0.1) 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 0 25px rgba(0, 255, 65, 0.4),
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(0, 255, 65, 0.2);
    color: #00ff41;
    border-color: #00ff41;
}

@keyframes primary-pulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(0, 255, 65, 0.3),
            0 4px 15px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 35px rgba(0, 255, 65, 0.5),
            0 4px 20px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

/* ========== FEATURES SECTION ========== */
.features-section {
    margin: 4rem 0;
    text-align: center;
}

.features-section__title {
    font-family: 'Source Code Pro', monospace;
    font-size: 2rem;
    color: #00ff41;
    margin-bottom: 3rem;
    text-shadow: 0 0 10px #00ff41;
}

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

.feature-item {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 8px;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: #00ff41;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: sepia(1) hue-rotate(90deg) brightness(1.5);
}

.feature-item h3 {
    font-family: 'Source Code Pro', monospace;
    color: #00ff41;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-item p {
    color: #e0e0e0;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ========== FOOTER STYLES ========== */
.main-footer {
    margin-top: 4rem;
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(0, 255, 65, 0.3);
    background: rgba(13, 13, 13, 0.8);
}

.friend-links-section {
    margin-bottom: 2rem;
}

.friend-links__title {
    font-family: 'Source Code Pro', monospace;
    color: #00ff41;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 5px #00ff41;
}

.friend-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.friend-links__item {
    color: #e0e0e0;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: rgba(26, 26, 26, 0.5);
}

.friend-links__item:hover {
    color: #00ff41;
    border-color: #00ff41;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
    text-decoration: none;
}

.footer-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(85, 85, 85, 0.3);
}

.footer__timestamp {
    font-family: 'Source Code Pro', monospace;
    color: #00ff41;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-shadow: 0 0 3px #00ff41;
}

.timestamp-label {
    color: #e0e0e0;
    opacity: 0.8;
}

.footer__copyright {
    color: #e0e0e0;
    opacity: 0.6;
    font-size: 0.8rem;
    font-family: 'Source Code Pro', monospace;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .container {
        padding: 1rem 0.5rem;
    }
    
    .main-header__title {
        font-size: 2rem;
    }
    
    .main-header__subtitle {
        font-size: 1rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .friend-links {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .friend-links__item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Main Action Buttons - Tablet */
    .main-action-buttons {
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .main-action-btn {
        min-width: 160px;
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .main-header {
        margin-bottom: 2rem;
        padding: 1rem 0;
    }
    
    .main-header__title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .main-header__subtitle {
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .service-card__title {
        font-size: 1.3rem;
    }
    
    .service-card__button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .features-section__title {
        font-size: 1.5rem;
    }
    
    .feature-item {
        padding: 1.5rem 1rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    /* Main Action Buttons - Mobile */
    .main-action-buttons {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .main-action-btn {
        min-width: 200px;
        width: 100%;
        max-width: 280px;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .btn-icon {
        font-size: 1.1rem;
    }
}

/* ========== FOCUS STYLES FOR ACCESSIBILITY ========== */
.service-card__button:focus,
.friend-links__item:focus,
.main-action-btn:focus {
    outline: 2px solid #00ff41;
    outline-offset: 2px;
    box-shadow: 
        0 0 0 4px rgba(0, 255, 65, 0.2),
        0 0 15px rgba(0, 255, 65, 0.5);
}

/* ========== HIGH CONTRAST MODE SUPPORT ========== */
@media (prefers-contrast: high) {
    .service-card {
        border-width: 2px;
    }
    
    .service-card__title,
    .main-header__title {
        text-shadow: none;
    }
    
    .matrix-bg {
        opacity: 0.05;
    }
}

/* ========== REDUCED MOTION SUPPORT ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .matrix-bg,
    .matrix-bg::before,
    .matrix-bg::after {
        animation: none;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .matrix-bg {
        display: none;
    }
    
    .service-card {
        border: 2px solid #333;
        box-shadow: none;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .service-card__button {
        border: 2px solid #333;
        color: #333;
    }
    
    .main-action-btn {
        border: 2px solid #333;
        color: #333;
        background: transparent;
        box-shadow: none;
    }
    
    .main-header__title,
    .service-card__title,
    .features-section__title,
    .friend-links__title,
    .footer__timestamp {
        color: #333;
        text-shadow: none;
    }
    
    body {
        background: white;
        color: #333;
    }
}