/**
 * Siang.Pro 官方網站 - Fusion Style
 * 深色模式、漸層霓虹、玻璃擬態、科技感
 */

/* ===== CSS Variables ===== */
:root {
    --neon-cyan: #00f5ff;
    --neon-purple: #bf00ff;
    --neon-pink: #ff00ff;
    --neon-blue: #0066ff;
    --dark-bg: #0a0a0f;
    --dark-card: #12121a;
    --dark-border: #1f1f2e;
    --glass-bg: rgba(18, 18, 26, 0.8);
}

/* ===== Base Styles ===== */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--neon-purple), var(--neon-pink));
}

/* Selection */
::selection {
    background: var(--neon-cyan);
    color: var(--dark-bg);
}

/* ===== Typography ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-cyan {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Navigation Styles ===== */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    color: #9ca3af;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--neon-cyan);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #9ca3af;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--neon-cyan);
    background: rgba(0, 245, 255, 0.1);
}

/* ===== Button Styles ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 245, 255, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--dark-border);
    color: #e5e7eb;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
}

/* ===== Card Styles ===== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--dark-border);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(0, 245, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                0 0 40px rgba(0, 245, 255, 0.1);
}

.service-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: rgba(0, 245, 255, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4),
                0 0 50px rgba(0, 245, 255, 0.15);
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
}

.project-card img {
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.5) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .overlay {
    opacity: 1;
}

.project-card .content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.project-card:hover .content {
    transform: translateY(0);
}

/* ===== Social Icons ===== */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    color: #9ca3af;
    transition: all 0.3s ease;
}

.social-icon:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 245, 255, 0.2);
}

/* ===== Footer Links ===== */
.footer-link {
    color: #9ca3af;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--neon-cyan);
    transform: translateX(5px);
}

/* ===== Form Styles ===== */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 0.5rem;
    color: #e5e7eb;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.1);
}

.form-input::placeholder {
    color: #6b7280;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e5e7eb;
    font-weight: 500;
}

/* ===== Hero Section ===== */
.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: #9ca3af;
    max-width: 600px;
}

/* ===== Section Styles ===== */
.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #9ca3af;
    font-size: 1.125rem;
    max-width: 600px;
}

/* ===== Animations ===== */
@keyframes glow {
    0% { box-shadow: 0 0 20px rgba(0, 245, 255, 0.3); }
    100% { box-shadow: 0 0 40px rgba(191, 0, 255, 0.4); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-border {
    0%, 100% { border-color: rgba(0, 245, 255, 0.3); }
    50% { border-color: rgba(191, 0, 255, 0.5); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
}

/* ===== Glow Effects ===== */
.glow-cyan {
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
}

.glow-purple {
    box-shadow: 0 0 30px rgba(191, 0, 255, 0.3);
}

.glow-text {
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
}

/* ===== Icon Box ===== */
.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(191, 0, 255, 0.1));
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 1rem;
    color: var(--neon-cyan);
    transition: all 0.3s ease;
}

.icon-box:hover {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.2), rgba(191, 0, 255, 0.2));
    transform: scale(1.1);
}

/* ===== Badge ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 9999px;
    color: var(--neon-cyan);
    font-size: 0.75rem;
    font-weight: 500;
}

/* ===== Divider ===== */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--dark-border), transparent);
}

/* ===== Loading Spinner ===== */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--dark-border);
    border-top-color: var(--neon-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Currency Toggle ===== */
.currency-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--dark-border);
    color: #9ca3af;
}

.currency-btn:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.currency-btn.active {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border-color: transparent;
    color: white;
}

/* ===== FAQ Accordion ===== */
.faq-item {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(0, 245, 255, 0.3);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e5e7eb;
    font-weight: 500;
    text-align: left;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--neon-cyan);
}

.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.25rem;
    color: #9ca3af;
    line-height: 1.7;
}

/* ===== Testimonial Card ===== */
.testimonial-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--neon-cyan);
    opacity: 0.2;
    line-height: 1;
}

/* ===== Rating Stars ===== */
.stars {
    display: flex;
    gap: 0.25rem;
}

.star {
    color: #fbbf24;
}

.star.empty {
    color: #374151;
}

/* ===== Domain Card ===== */
.domain-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.domain-card:hover {
    border-color: rgba(0, 245, 255, 0.3);
    transform: translateX(5px);
}

.domain-card .verified-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 0.75rem;
    color: #22c55e;
}

/* ===== Blog Card ===== */
.blog-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: rgba(0, 245, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover img {
    transform: scale(1.05);
}

/* ===== Stats Counter ===== */
.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #9ca3af;
    margin-top: 0.5rem;
}

/* ===== Page Header ===== */
.page-header {
    padding-top: 8rem;
    padding-bottom: 4rem;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-header p {
    color: #9ca3af;
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--neon-cyan);
}

/* ===== Alert Messages ===== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.alert-info {
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    color: var(--neon-cyan);
}

/* ===== Table Styles ===== */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    padding: 1rem;
    text-align: left;
    background: var(--dark-card);
    color: #9ca3af;
    font-weight: 600;
    border-bottom: 1px solid var(--dark-border);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--dark-border);
}

.data-table tr:hover td {
    background: rgba(0, 245, 255, 0.05);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card,
    .glass-card {
        padding: 1.5rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .no-print {
        display: none !important;
    }
}

