/* Siniswift International - Custom Styles */

/* ========== Ampersand Typography ========== */
/* Replaces distorted Playfair Display & with elegant Georgia italic */
.amp {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: bold;
    letter-spacing: 0.01em;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid #0056D2;
    outline-offset: 2px;
}

/* Link Hover Underline Animation */
a {
    position: relative;
}

a:hover::after {
    width: 100%;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #0056D2, #00A3E0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Utilities */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-in {
    animation: slideIn 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease-out;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0056D2;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #003B8F;
}

/* Container Queries */
@media (min-width: 640px) {
    .container-sm {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container-md {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container-lg {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container-xl {
        max-width: 1280px;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    body {
        background: white;
        color: black;
    }
}

/* Dark Mode Support (future use) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here in the future */
}

/* ===================================
   UNIFIED HOVER INTERACTION SYSTEM
   =================================== */

/*
 * 统一Hover交互规范
 * 基于当前红黑配色方案 (#0A0A0A背景 + #C41E3A主色)
 * 所有交互元素遵循统一的过渡时间和缓动函数
 */

/* 1. 主要按钮 - Primary Button */
.btn-primary {
    background: #C41E3A;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-out;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background: #D9455F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* 导航栏Contact按钮 - Navigation Contact Button */
.btn-contact-nav {
    background: #C41E3A;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-out;
    display: inline-block;
    text-decoration: none;
    letter-spacing: 0.05em;
}

.btn-contact-nav:hover {
    background: #D9455F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.btn-contact-nav:active {
    transform: translateY(0);
}

/* 2. 次要按钮 - Secondary Button */
.btn-secondary {
    background: transparent;
    color: #C41E3A;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    border: 2px solid #C41E3A;
    cursor: pointer;
    transition: all 0.2s ease-out;
    display: inline-block;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(196, 30, 58, 0.1);
    border-color: #D9455F;
    color: #D9455F;
}

/* 3. 文字按钮 - Ghost Button */
.btn-ghost {
    background: transparent;
    color: #C41E3A;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-out;
    display: inline-block;
    text-decoration: none;
}

.btn-ghost:hover {
    background: rgba(196, 30, 58, 0.08);
    color: #D9455F;
}

/* 4. 文字链接 - Text Link */
.link-hover {
    color: #C41E3A;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease-out;
}

.link-hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C41E3A;
    transition: width 0.2s ease-out;
}

.link-hover:hover {
    color: #D9455F;
}

.link-hover:hover::after {
    width: 100%;
}

/* 5. 卡片 - Card */
.card-interactive {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease-out;
    cursor: pointer;
    border: 1px solid #2a2a2a;
}

.card-interactive:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: #C41E3A;
}

/* 6. 列表项 - List Item */
.list-item-interactive {
    padding: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-out;
    display: flex;
    align-items: center;
    gap: 12px;
}

.list-item-interactive:hover {
    background: rgba(196, 30, 58, 0.1);
}

.list-item-interactive:hover .list-icon {
    color: #C41E3A;
    transform: scale(1.1);
}

.list-icon {
    transition: all 0.2s ease-out;
}

/* 7. 图标按钮 - Icon Button */
.icon-btn-interactive {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-out;
    background: transparent;
    border: none;
    color: #999;
}

.icon-btn-interactive:hover {
    background: rgba(196, 30, 58, 0.1);
    color: #C41E3A;
}

/* 8. 导航链接 - Navigation Link */
.nav-link-interactive {
    color: #999;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.2s ease-out;
    text-decoration: none;
    position: relative;
}

/* 品牌红下划线 - 默认和hover状态 */
.nav-link-interactive::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #C41E3A;
    width: 0;
    transition: width 0.2s ease-out;
    opacity: 0;
}

.nav-link-interactive:hover::after {
    width: 80%;
    opacity: 1;
}

.nav-link-interactive:active::after {
    width: 80%;
    opacity: 1;
}

/* 导航当前页高亮 */
.nav-link-interactive.active {
    font-weight: 600;
}

/* 当前页底部红色下划线 */
.nav-link-interactive.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #C41E3A;
    width: 80%;
    opacity: 1;
}

/* 9. 图片/缩略图 - Image/Thumbnail */
.img-interactive {
    transition: transform 0.3s ease-out;
}

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

/* 10. 容器/盒子 - Container/Box */
.box-interactive {
    transition: all 0.2s ease-out;
}

.box-interactive:hover {
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.2);
    border-color: #C41E3A;
}

/* 可访问性：焦点状态 */
*:focus-visible {
    outline: 2px solid #C41E3A;
    outline-offset: 2px;
}

/* 触摸设备优化 */
@media (hover: none) {
    /* 禁用hover效果，使用点击反馈 */
    .btn-primary:active,
    .btn-secondary:active,
    .btn-ghost:active {
        transform: scale(0.98);
        opacity: 0.8;
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
