<?php
/**
 * SinoHub 公共CSS样式文件
 * 
 * 功能：统一颜色变量、通用样式、响应式断点
 * 使用方式：在页面 <head> 中引入 <link rel="stylesheet" href="/assets/css/common.css">
 * 更新日期：2026-04-19
 */
?>
<style>
    /* ========================================
       CSS 变量 - 主题色
       ======================================== */
    :root {
        /* 主色调 */
        --primary-color: #FF6B35;
        --primary-dark: #E55A2B;
        --primary-light: #FFF3E6;
        --primary-gradient: linear-gradient(135deg, #FF6B35, #FF8F5C);
        
        /* 深色系 */
        --secondary-color: #1A1A2E;
        --accent-color: #16213E;
        
        /* 文本颜色 */
        --text-dark: #333333;
        --text-gray: #666666;
        --text-light: #999999;
        
        /* 背景颜色 */
        --bg-light: #F8F9FA;
        --bg-white: #FFFFFF;
        --bg-dark: #1A1A2E;
        
        /* 边框颜色 */
        --border-color: #E8E8E8;
        --border-light: #F0F0F0;
        
        /* 功能色 */
        --success-color: #4CAF50;
        --warning-color: #FF9800;
        --danger-color: #F44336;
        --info-color: #2196F3;
        
        /* 圆角 */
        --radius-sm: 4px;
        --radius-md: 8px;
        --radius-lg: 12px;
        --radius-xl: 16px;
        --radius-full: 9999px;
        
        /* 阴影 */
        --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
        --shadow-md: 0 2px 8px rgba(0,0,0,0.1);
        --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
        
        /* 字体 */
        --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
        
        /* 动画 */
        --transition-fast: 0.15s ease;
        --transition-normal: 0.3s ease;
    }

    /* ========================================
       重置样式
       ======================================== */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }
    
    html {
        scroll-behavior: smooth;
    }
    
    body {
        font-family: var(--font-family);
        background: var(--bg-light);
        color: var(--text-dark);
        line-height: 1.6;
        min-height: 100vh;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    a {
        text-decoration: none;
        color: inherit;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    button {
        cursor: pointer;
        border: none;
        outline: none;
        font-family: inherit;
    }
    
    input, textarea, select {
        font-family: inherit;
        outline: none;
    }
    
    ul, ol {
        list-style: none;
    }

    /* ========================================
       顶部导航栏 - 通用
       ======================================== */
    .sino-navbar {
        background: var(--bg-white);
        position: sticky;
        top: 0;
        z-index: 100;
        box-shadow: var(--shadow-sm);
    }
    
    .sino-navbar-top {
        background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
        color: white;
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .sino-navbar-main {
        display: flex;
        align-items: center;
        padding: 12px 15px;
        gap: 15px;
    }
    
    .sino-navbar-logo {
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        color: var(--secondary-color);
    }
    
    .sino-navbar-logo {
        display: flex;
        align-items: center;
        text-decoration: none;
        gap: 8px;
    }
    
    .sino-navbar-logo img {
        height: 36px;
        width: auto;
        object-fit: contain;
    }
    
    .sino-navbar-logo-text {
        font-size: 18px;
        font-weight: 700;
    }
    
    .sino-navbar-search {
        flex: 1;
        position: relative;
    }
    
    .sino-navbar-search-input {
        width: 100%;
        padding: 10px 40px 10px 15px;
        border: 2px solid var(--border-color);
        border-radius: var(--radius-full);
        font-size: 14px;
        background: var(--bg-light);
        transition: var(--transition-fast);
    }
    
    .sino-navbar-search-input:focus {
        border-color: var(--primary-color);
        background: var(--bg-white);
    }
    
    .sino-navbar-search-btn {
        position: absolute;
        right: 4px;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        background: var(--primary-color);
        border: none;
        border-radius: 50%;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sino-navbar-actions {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .sino-navbar-action {
        position: relative;
        text-decoration: none;
        color: var(--text-gray);
        font-size: 20px;
        transition: var(--transition-fast);
    }
    
    .sino-navbar-action:hover {
        color: var(--primary-color);
    }
    
    .sino-navbar-action .badge {
        position: absolute;
        top: -5px;
        right: -8px;
        background: var(--primary-color);
        color: white;
        font-size: 10px;
        min-width: 18px;
        height: 18px;
        border-radius: var(--radius-full);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
    }
    
    /* 语言切换 */
    .sino-lang-switch {
        position: relative;
    }
    
    .sino-lang-btn {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 6px 10px;
        background: var(--bg-light);
        border: none;
        border-radius: var(--radius-full);
        font-size: 12px;
        cursor: pointer;
        color: var(--text-gray);
        transition: var(--transition-fast);
    }
    
    .sino-lang-btn:hover {
        background: var(--border-color);
    }
    
    .sino-lang-menu {
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--bg-white);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        min-width: 120px;
        overflow: hidden;
        z-index: 1000;
        display: none;
    }
    
    .sino-lang-menu.show {
        display: block;
    }
    
    .sino-lang-option {
        display: block;
        padding: 10px 15px;
        font-size: 13px;
        color: var(--text-dark);
        transition: var(--transition-fast);
    }
    
    .sino-lang-option:hover,
    .sino-lang-option.active {
        background: var(--primary-light);
        color: var(--primary-color);
    }
    
    /* ========================================
       顶部进度条步骤条
       ======================================== */
    .sino-stepper {
        background: var(--bg-white);
        padding: 20px 0;
        margin-bottom: 20px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .sino-stepper-inner {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }
    
    .sino-stepper-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        flex: 1;
        max-width: 150px;
    }
    
    .sino-stepper-circle {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 600;
        transition: var(--transition-normal);
        margin-bottom: 8px;
    }
    
    .sino-stepper-circle.active {
        background: var(--primary-color);
        color: white;
    }
    
    .sino-stepper-circle.inactive {
        background: var(--bg-white);
        border: 2px solid var(--border-color);
        color: var(--text-light);
    }
    
    .sino-stepper-circle.completed {
        background: var(--primary-color);
        color: white;
    }
    
    .sino-stepper-label {
        font-size: 13px;
        text-align: center;
        transition: var(--transition-normal);
    }
    
    .sino-stepper-label.active {
        color: var(--primary-color);
        font-weight: 600;
    }
    
    .sino-stepper-label.inactive {
        color: var(--text-light);
    }
    
    .sino-stepper-line {
        position: absolute;
        top: 18px;
        left: 50%;
        width: 100%;
        height: 2px;
        background: var(--border-color);
        z-index: 0;
    }
    
    .sino-stepper-item:last-child .sino-stepper-line {
        display: none;
    }
    
    .sino-stepper-line.completed {
        background: var(--primary-color);
    }

    /* ========================================
       主容器
       ======================================== */
    .sino-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px 40px;
    }
    
    .sino-container-fluid {
        width: 100%;
        padding: 0 20px;
    }

    /* ========================================
       卡片样式
       ======================================== */
    .sino-card {
        background: var(--bg-white);
        border-radius: var(--radius-md);
        padding: 16px;
        box-shadow: var(--shadow-sm);
        transition: var(--transition-normal);
    }
    
    .sino-card:hover {
        box-shadow: var(--shadow-md);
    }
    
    .sino-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border-light);
        margin-bottom: 12px;
    }
    
    .sino-card-title {
        font-size: 16px;
        font-weight: 600;
        color: var(--text-dark);
    }

    /* ========================================
       按钮样式
       ======================================== */
    .sino-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px 20px;
        border-radius: var(--radius-md);
        font-size: 14px;
        font-weight: 500;
        transition: var(--transition-fast);
        cursor: pointer;
        border: none;
    }
    
    .sino-btn-primary {
        background: var(--primary-color);
        color: white;
    }
    
    .sino-btn-primary:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    }
    
    .sino-btn-outline {
        background: transparent;
        border: 1px solid var(--border-color);
        color: var(--text-gray);
    }
    
    .sino-btn-outline:hover {
        border-color: var(--primary-color);
        color: var(--primary-color);
    }
    
    .sino-btn-block {
        display: flex;
        width: 100%;
    }
    
    .sino-btn-sm {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .sino-btn-lg {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .sino-btn:disabled {
        background: var(--border-color);
        color: var(--text-light);
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    /* ========================================
       表单样式
       ======================================== */
    .sino-form-group {
        margin-bottom: 16px;
    }
    
    .sino-form-label {
        display: block;
        font-size: 14px;
        font-weight: 500;
        color: var(--text-dark);
        margin-bottom: 8px;
    }
    
    .sino-form-control {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        font-size: 14px;
        transition: var(--transition-fast);
    }
    
    .sino-form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    }
    
    .sino-form-control::placeholder {
        color: var(--text-light);
    }

    /* ========================================
       Toast 提示
       ======================================== */
    .sino-toast {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 15px 30px;
        border-radius: var(--radius-md);
        font-size: 14px;
        z-index: 9999;
        opacity: 0;
        transition: opacity 0.3s;
        text-align: center;
        max-width: 80%;
    }
    
    .sino-toast.show {
        opacity: 1;
    }

    /* ========================================
       模态框
       ======================================== */
    .sino-modal-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        align-items: center;
        justify-content: center;
    }
    
    .sino-modal-overlay.show {
        display: flex;
    }
    
    .sino-modal-box {
        background: var(--bg-white);
        border-radius: var(--radius-lg);
        width: 90%;
        max-width: 400px;
        overflow: hidden;
    }
    
    .sino-modal-content {
        padding: 30px 25px;
        text-align: center;
    }
    
    .sino-modal-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 8px;
    }
    
    .sino-modal-desc {
        font-size: 14px;
        color: var(--text-light);
    }
    
    .sino-modal-footer {
        display: flex;
        border-top: 1px solid var(--border-color);
    }
    
    .sino-modal-btn {
        flex: 1;
        padding: 15px;
        text-align: center;
        font-size: 15px;
        cursor: pointer;
        border: none;
        background: var(--bg-white);
        transition: var(--transition-fast);
    }
    
    .sino-modal-btn.cancel {
        color: var(--text-gray);
        border-right: 1px solid var(--border-color);
    }
    
    .sino-modal-btn.confirm {
        color: var(--primary-color);
        font-weight: 600;
    }
    
    .sino-modal-btn:hover {
        background: var(--bg-light);
    }

    /* ========================================
       空状态
       ======================================== */
    .sino-empty {
        text-align: center;
        padding: 60px 20px;
    }
    
    .sino-empty-icon {
        width: 100px;
        height: 100px;
        margin: 0 auto 20px;
        background: var(--bg-light);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sino-empty-icon i {
        font-size: 40px;
        color: var(--text-light);
    }
    
    .sino-empty-title {
        font-size: 16px;
        font-weight: 600;
        color: var(--text-dark);
        margin-bottom: 8px;
    }
    
    .sino-empty-desc {
        font-size: 14px;
        color: var(--text-light);
        margin-bottom: 20px;
    }

    /* ========================================
       加载状态
       ======================================== */
    .sino-loading {
        text-align: center;
        padding: 40px;
    }
    
    .sino-loading i {
        font-size: 32px;
        color: var(--primary-color);
        animation: sino-spin 1s linear infinite;
    }
    
    @keyframes sino-spin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }

    /* ========================================
       底部导航 - 移动端
       ======================================== */
    .sino-tabbar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-white);
        display: flex;
        padding: 8px 0;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
        z-index: 100;
    }
    
    .sino-tabbar-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--text-light);
        font-size: 11px;
        gap: 4px;
        padding: 4px 0;
        transition: var(--transition-fast);
    }
    
    .sino-tabbar-item i {
        font-size: 22px;
    }
    
    .sino-tabbar-item.active {
        color: var(--primary-color);
    }

    /* ========================================
       响应式
       ======================================== */
    @media (max-width: 768px) {
        .sino-navbar-search {
            display: none;
        }
        
        .sino-stepper-inner {
            justify-content: flex-start;
            overflow-x: auto;
            gap: 30px;
            padding-bottom: 10px;
        }
        
        .sino-stepper-inner::-webkit-scrollbar {
            display: none;
        }
        
        .sino-stepper-item {
            min-width: 80px;
        }
        
        .sino-container {
            padding: 0 10px 80px;
        }
        
        .sino-tabbar {
            display: flex;
        }
    }
    
    @media (min-width: 769px) {
        .sino-tabbar {
            display: none;
        }
    }

    /* ========================================
       工具类
       ======================================== */
    .text-primary { color: var(--primary-color); }
    .text-gray { color: var(--text-gray); }
    .text-light { color: var(--text-light); }
    .text-center { text-align: center; }
    .text-right { text-align: right; }
    
    .bg-primary { background: var(--primary-color); }
    .bg-white { background: var(--bg-white); }
    .bg-light { background: var(--bg-light); }
    
    .fw-600 { font-weight: 600; }
    .fw-700 { font-weight: 700; }
    
    .mt-10 { margin-top: 10px; }
    .mt-15 { margin-top: 15px; }
    .mt-20 { margin-top: 20px; }
    .mb-10 { margin-bottom: 10px; }
    .mb-15 { margin-bottom: 15px; }
    .mb-20 { margin-bottom: 20px; }
    
    .d-flex { display: flex; }
    .align-center { align-items: center; }
    .justify-between { justify-content: space-between; }
    .gap-10 { gap: 10px; }
    .gap-15 { gap: 15px; }
</style>
