/* ===== 通用配色 ===== */
.cc-works-wrapper,
.cc-calligraphers-grid,
.cc-rubbings-list,
.cc-courses-grid,
.cc-stationery-grid,
.cc-dictionary-search,
.cc-block-featured-work,
.cc-block-dictionary,
.cc-block-rubbing-scroll,
.cc-block-script-comparison,
.cc-block-course-directory,
.cc-block-stationery-card {
    --cc-bg: #f0efe1;
    --cc-border: #dad7c5;
    --cc-text: #1e1e1e;
    --cc-muted: #4a4a4a;
    --cc-gold: #c2a15b;
    --cc-gold-dark: #a88540;
    --cc-card-bg: #ffffff;
    --cc-hover-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* ===== 通用布局 ===== */
.cc-works-wrapper,
.cc-calligraphers-grid,
.cc-rubbings-list,
.cc-courses-grid,
.cc-stationery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px 0;
}

.cc-grid-layout .cc-work-card,
.cc-calligrapher-card,
.cc-rubbing-item,
.cc-course-card,
.cc-stationery-card {
    flex: 1 1 calc(33.333% - 30px);
    background: #f0efe1;
    border: 1px solid #dad7c5;
    padding: 16px;
    text-align: center;
    border-radius: 16px;
    transition: box-shadow 0.2s, transform 0.2s;
    color: #1e1e1e;
}

.cc-list-layout .cc-work-card {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cc-work-card:hover,
.cc-calligrapher-card:hover,
.cc-rubbing-item:hover,
.cc-course-card:hover,
.cc-stationery-card:hover {
    box-shadow: var(--cc-hover-shadow);
    transform: translateY(-4px);
}

.cc-work-image img,
.cc-rubbing-item img,
.cc-course-card img,
.cc-stationery-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.cc-work-meta {
    font-size: 0.9em;
    color: #4a4a4a;
    margin-top: 8px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.cc-work-meta span {
    background: rgba(194,161,91,0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

/* 书家头像 */
.cc-calligrapher-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #c2a15b;
}

/* 字典搜索 */
.cc-dictionary-search {
    margin: 20px 0;
}
.cc-dictionary-search input {
    padding: 10px 16px;
    width: 260px;
    margin-right: 10px;
    border: 1px solid #dad7c5;
    border-radius: 30px;
    background: #fff;
    color: #1e1e1e;
}
.cc-dict-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}
.cc-dict-item {
    text-align: center;
    background: #f0efe1;
    border: 1px solid #dad7c5;
    padding: 12px;
    width: 110px;
    border-radius: 12px;
    transition: box-shadow 0.2s;
}
.cc-dict-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.cc-dict-item img {
    max-width: 80px;
    height: auto;
    margin-bottom: 5px;
}
.cc-dict-info {
    font-size: 0.9em;
    color: #1e1e1e;
}
.cc-dict-info a {
    color: #c2a15b;
}

/* 区块通用 */
.cc-block-featured-work,
.cc-block-dictionary,
.cc-block-rubbing-scroll,
.cc-block-script-comparison,
.cc-block-course-directory,
.cc-block-stationery-card {
    margin: 20px 0;
}

.cc-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #f0efe1;
}
.cc-comparison-table th, .cc-comparison-table td {
    border: 1px solid #dad7c5;
    padding: 12px;
    text-align: center;
    color: #1e1e1e;
}
.cc-comparison-table th {
    background: #d4d2ba;
    font-weight: 600;
}
.cc-comparison-table img {
    max-width: 60px;
    height: auto;
}

/* 小工具样式 */
.cc-widget-daily-char .cc-big-char {
    font-size: 3em;
    text-align: center;
    margin: 15px 0;
    color: #1e1e1e;
}
.cc-script-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.cc-script-item {
    text-align: center;
    background: #f0efe1;
    padding: 8px;
    border: 1px solid #dad7c5;
    border-radius: 8px;
    width: 80px;
}
.cc-script-item img {
    max-width: 60px;
}

/* ========== 首页 V2 样式（书法综合首页） ========== */
.cc-homepage-v2 {
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: "Noto Serif SC", "Songti SC", "KaiTi", "PingFang SC", "Microsoft YaHei", serif;
    color: #1e1e1e;
    background: #d4d2ba;
}
.cc-homepage-v2 a {
    color: #c2a15b;
    text-decoration: none;
}
.cc-homepage-v2 a:hover {
    color: #a88540;
    text-decoration: underline;
}

/* 面包屑 */
.cc-breadcrumb ol {
    padding: 12px 40px;
    background: #e6e4cf;
    list-style: none;
    margin: 0;
    font-size: 0.9em;
    border-bottom: 1px solid #dad7c5;
}
.cc-breadcrumb li { display: inline; }
.cc-breadcrumb li+li::before { content: "›"; margin: 0 8px; color: #999; }
.cc-breadcrumb .current { color: #4a4a4a; }

/* 英雄区 */
.cc-hero {
    position: relative;
    background: #f0efe1;
    color: #1e1e1e;
    text-align: center;
    padding: 100px 40px 80px;
    border-bottom: 2px solid #c2a15b;
    overflow: hidden;
}
.cc-hero::before {
    content: "";
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.05"><path d="M20,20 Q50,10 80,20 T50,80 T20,20" fill="none" stroke="%23c2a15b" stroke-width="0.5"/></svg>') repeat;
}
.cc-hero-content { position: relative; z-index: 1; }
.cc-hero-title {
    font-size: 3.8em;
    font-weight: 700;
    margin: 0;
    letter-spacing: 10px;
    color: #1e1e1e;
}
.cc-hero-desc {
    font-size: 1.3em;
    color: #4a4a4a;
    margin: 20px 0 35px;
}
.cc-hero-search { max-width: 560px; margin: 0 auto; }
.cc-hero-search input, .cc-hero-search button {
    padding: 14px 24px;
    border-radius: 40px;
    border: 1px solid #dad7c5;
    background: #fff;
    font-size: 1.1em;
    color: #1e1e1e;
}
.cc-hero-search button {
    background: linear-gradient(135deg, #c2a15b, #a88540);
    color: #fff;
    border: none;
    margin-left: 10px;
    cursor: pointer;
}
.cc-hero-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cc-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 40px;
    font-size: 1.05em;
    transition: all 0.25s;
    font-weight: 600;
}
.cc-btn-primary {
    background: linear-gradient(135deg, #c2a15b, #a88540);
    color: #fff !important;
    border: none;
}
.cc-btn-outline {
    border: 2px solid #c2a15b;
    color: #c2a15b !important;
    background: transparent;
}
.cc-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    color: #fff !important;
    background: #c2a15b;
}

/* 统计条 */
.cc-stats-bar {
    display: flex;
    justify-content: space-around;
    background: #ffffff;
    border-bottom: 1px solid #dad7c5;
    padding: 30px 20px;
    text-align: center;
    flex-wrap: wrap;
}
.cc-stat-item {
    font-size: 1.1em;
    margin: 10px 20px;
    color: #4a4a4a;
}
.cc-stat-num {
    font-size: 2.4em;
    color: #c2a15b;
    display: block;
    font-weight: bold;
}

/* 快捷入口 */
.cc-quick-links {
    display: flex;
    gap: 30px;
    padding: 60px 40px;
    max-width: 1300px;
    margin: 0 auto;
}
.cc-quick-card {
    flex: 1;
    background: #f0efe1;
    border: 1px solid #dad7c5;
    border-radius: 16px;
    padding: 40px 25px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
    color: #1e1e1e;
}
.cc-quick-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    transform: translateY(-5px);
    border-color: #c2a15b;
}
.cc-quick-icon { font-size: 3em; display: block; margin-bottom: 15px; }
.cc-quick-card h3 { color: #1e1e1e; margin: 10px 0; }
.cc-quick-card p { color: #4a4a4a; }

/* 每日一字 + 书论 */
.cc-daily-quote-row {
    display: flex;
    gap: 30px;
    max-width: 1300px;
    margin: 60px auto;
    padding: 0 40px;
}
.cc-daily-char-box,
.cc-quote-box {
    flex: 1;
    background: #f0efe1;
    border: 1px solid #dad7c5;
    border-radius: 16px;
    padding: 50px 30px;
    color: #1e1e1e;
}
.cc-big-char {
    font-size: 5em;
    display: block;
    text-align: center;
    margin: 30px 0;
    color: #c2a15b;
}
.cc-char-variants {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}
.cc-variant-item {
    text-align: center;
    background: #ffffff;
    border-radius: 10px;
    padding: 12px 10px;
    width: 90px;
    transition: background 0.2s;
    color: #1e1e1e;
    border: 1px solid #dad7c5;
}
.cc-variant-item:hover {
    background: #f0efe1;
    border-color: #c2a15b;
}
.cc-variant-item img { max-width: 60px; height: auto; }
.cc-variant-item span { display: block; font-size: 0.9em; margin-top: 6px; }

.cc-quote-text {
    font-size: 1.3em;
    font-style: italic;
    color: #4a4a4a;
    line-height: 1.8;
    border-left: 4px solid #c2a15b;
    padding-left: 20px;
}
.cc-quote-text cite {
    display: block;
    margin-top: 15px;
    font-size: 0.9em;
    color: #c2a15b;
}

/* 通用区块 */
.cc-section {
    max-width: 1300px;
    margin: 0 auto 70px;
    padding: 0 40px;
}
.cc-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid #c2a15b;
    margin-bottom: 30px;
    padding-bottom: 15px;
}
.cc-section-title {
    font-weight: 700;
    font-size: 2.2em;
    margin: 0;
    color: #1e1e1e;
    letter-spacing: 3px;
}
.cc-more-link {
    font-size: 1em;
    color: #c2a15b;
    transition: color 0.2s;
}
.cc-more-link:hover { color: #a88540; }

/* 网格 */
.cc-works-grid,
.cc-calligraphers-grid,
.cc-rubbings-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.cc-work-card-v2,
.cc-calligrapher-card-v2,
.cc-rubbing-card-v2 {
    flex: 1 1 calc(25% - 30px);
    background: #f0efe1;
    border: 1px solid #dad7c5;
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.cc-work-card-v2:hover,
.cc-calligrapher-card-v2:hover,
.cc-rubbing-card-v2:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    transform: translateY(-5px);
    border-color: #c2a15b;
}
.cc-work-thumb img { width: 100%; height: auto; display: block; }
.cc-work-info {
    padding: 15px;
    font-size: 0.9em;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: #4a4a4a;
}

/* 书家卡片优化：增加内边距 */
.cc-calligrapher-card-v2 {
    padding: 20px;
    text-align: center;
}
.cc-calligrapher-card-v2 a {
    display: block;
    text-decoration: none;
    color: inherit;
}
.cc-calligrapher-card-v2 h3 {
    margin: 12px 0 6px;
    font-size: 1.2em;
    color: #1e1e1e;
}
.cc-calligrapher-card-v2 .cc-calligrapher-avatar {
    margin-bottom: 10px;
}
.cc-calligrapher-bio {
    margin: 10px 0 0;
    font-size: 0.9em;
    color: #4a4a4a;
}

.cc-calligrapher-avatar img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #c2a15b;
}
.cc-avatar-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #d4d2ba;
    color: #c2a15b;
    line-height: 90px;
    text-align: center;
    font-size: 2em;
    margin: 0 auto;
}

/* 页脚 */
.cc-footer-seal {
    text-align: center;
    padding: 50px 20px;
    color: #4a4a4a;
    font-size: 1.1em;
    background: #e6e4cf;
}

/* 响应式 */
@media (max-width: 768px) {
    .cc-hero { padding: 60px 20px 50px; }
    .cc-hero-title { font-size: 2.4em; }
    .cc-daily-quote-row,
    .cc-quick-links {
        flex-direction: column;
        padding: 0 20px;
    }
    .cc-work-card-v2,
    .cc-calligrapher-card-v2,
    .cc-rubbing-card-v2 {
        flex: 1 1 100%;
    }
    .cc-section { padding: 0 20px; }
}