/* CC宝 自定義樣式 */

:root {
    --primary-color: #8B0000;
    --secondary-color: #DC143C;
    --accent-color: #FFD700;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #2c2c2c;
    --gold-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --red-gradient: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
}

/* 全局樣式 */
body {
    font-family: 'Microsoft JhengHei', 'PingFang TC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

/* 導航欄樣式 */
.navbar {
    background: var(--red-gradient) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar-brand {
    font-weight: bold;
    color: var(--accent-color) !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: white !important;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
    font-weight: 700;
}

/* 英雄區域樣式 */
.hero-section, .hero-banner {
    background: var(--red-gradient);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before, .hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: shimmer 3s ease-in-out infinite alternate;
}

@keyframes shimmer {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

.hero-section .container, .hero-banner .container {
    position: relative;
    z-index: 1;
}

.hero-section h1, .hero-banner h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.hero-section .lead, .hero-banner .lead {
    font-size: 1.3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* 卡片樣式 */
.news-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.url-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.url-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 按鈕樣式 */
.btn-warning {
    background: var(--gold-gradient);
    border: none;
    color: #333;
    font-weight: 700;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
}

.btn-primary {
    background: var(--red-gradient);
    border: none;
    transition: all 0.3s ease;
    color: white;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.4);
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
}

.btn-success {
    background: var(--gold-gradient);
    border: none;
    color: #333;
    font-weight: 600;
}

.btn-success:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
    transform: translateY(-2px);
}

/* 徽章樣式 */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: 20px;
}

.badge.bg-warning {
    background: linear-gradient(135deg, var(--accent-color) 0%, #f4d03f 100%) !important;
    color: #333;
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

/* 頁腳樣式 */
.footer {
    background: var(--red-gradient);
    color: white;
    padding: 60px 0 30px;
    position: relative;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
}

.footer h5, .footer h6 {
    color: var(--accent-color);
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* 動畫效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .news-card {
        margin-bottom: 1rem;
    }
    
    .url-card {
        margin-bottom: 1rem;
    }
}

/* 加載動畫 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* 工具提示樣式 */
.tooltip-inner {
    background-color: var(--dark-color);
    color: white;
    border-radius: 6px;
    font-size: 0.875rem;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--dark-color);
}

/* 表單樣式 */
.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* 分頁樣式 */
.pagination .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    color: var(--accent-color);
    background-color: #f8f9fa;
    border-color: var(--accent-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #333;
}

/* 列表組樣式 */
.list-group-item {
    border: 1px solid rgba(0,0,0,0.125);
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.list-group-item-action:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

/* 圖標樣式 */
.fas, .far, .fab {
    transition: all 0.3s ease;
}

.fas:hover, .far:hover, .fab:hover {
    transform: scale(1.1);
}

/* 奢華大AD橫幅樣式 */
.luxury-ad-banner {
    background: var(--red-gradient);
    position: relative;
    padding: 80px 0;
    margin: 30px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.luxury-ad-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    animation: luxuryShimmer 4s ease-in-out infinite alternate;
}

@keyframes luxuryShimmer {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

/* 金色球體樣式 */
.golden-spheres {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.sphere {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--gold-gradient);
    border-radius: 50%;
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.4),
        inset 0 2px 10px rgba(255, 255, 255, 0.3),
        inset 0 -2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.sphere-1 { top: 10%; left: 5%; animation-delay: 0s; }
.sphere-2 { top: 20%; right: 10%; animation-delay: 1s; }
.sphere-3 { top: 5%; right: 20%; animation-delay: 2s; }
.sphere-4 { top: 15%; left: 15%; animation-delay: 3s; }
.sphere-5 { bottom: 20%; left: 10%; animation-delay: 4s; }

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

.sphere-content {
    text-align: center;
    color: #333;
    font-weight: bold;
}

.sphere-text {
    font-size: 12px;
    line-height: 1;
    margin-bottom: 2px;
}

.sphere-subtitle {
    font-size: 8px;
    opacity: 0.8;
}

/* 主要標題樣式 */
.main-headline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.headline-text {
    font-size: 4rem;
    font-weight: 900;
    color: #C0C0C0;
    text-shadow: 
        3px 3px 0px #8B0000,
        6px 6px 10px rgba(0,0,0,0.5);
    margin: 0;
    letter-spacing: 2px;
}

/* 印章樣式 */
.seal-container {
    position: relative;
    z-index: 3;
}

.wax-seal {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #8B0000 0%, #5C0000 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.4),
        inset 0 2px 10px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.seal-border {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.seal-character {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    z-index: 1;
}

/* 副標題樣式 */
.subtitle {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.slogan-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin: 0;
    letter-spacing: 1px;
}

/* 行動按鈕樣式 */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.btn-luxury {
    background: var(--gold-gradient);
    border: none;
    color: #333;
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 50px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.4),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

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

.btn-luxury:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(255, 215, 0, 0.6),
        inset 0 2px 10px rgba(255, 255, 255, 0.4);
}

.btn-luxury-outline {
    background: transparent;
    border: 3px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 50px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-luxury-outline:hover {
    background: var(--accent-color);
    color: #333;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
}

/* 輪播樣式 */
.carousel-luxury {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    margin: 30px 0;
}

.carousel-luxury .carousel-item {
    min-height: 500px;
    position: relative;
}

.carousel-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
    display: block;
}


.carousel-luxury .carousel-control-prev,
.carousel-luxury .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 215, 0, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-luxury .carousel-control-prev:hover,
.carousel-luxury .carousel-control-next:hover {
    opacity: 1;
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-luxury .carousel-control-prev {
    left: 20px;
}

.carousel-luxury .carousel-control-next {
    right: 20px;
}

.carousel-luxury .carousel-control-prev-icon,
.carousel-luxury .carousel-control-next-icon {
    width: 30px;
    height: 30px;
    filter: brightness(0) saturate(100%) invert(20%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.carousel-luxury .carousel-indicators {
    bottom: 20px;
}

.carousel-luxury .carousel-indicators button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--accent-color);
    margin: 0 5px;
    transition: all 0.3s ease;
}

.carousel-luxury .carousel-indicators button.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .headline-text {
        font-size: 2.5rem;
    }
    
    .main-headline {
        flex-direction: column;
        gap: 15px;
    }
    
    .wax-seal {
        width: 80px;
        height: 80px;
    }
    
    .seal-character {
        font-size: 2rem;
    }
    
    .sphere {
        width: 60px;
        height: 60px;
    }
    
    .sphere-text {
        font-size: 10px;
    }
    
    .sphere-subtitle {
        font-size: 7px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .carousel-luxury .carousel-control-prev,
    .carousel-luxury .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .carousel-luxury .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-luxury .carousel-control-next {
        right: 10px;
    }
    
    .carousel-image {
        height: 400px;
    }
    
    .carousel-luxury .carousel-item {
        min-height: 400px;
    }
    
    .slogan-text {
        font-size: 1.2rem;
    }
}

/* 自定義滾動條 */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b8941f;
}

